src/test/sysdep/log.c
static const char *log_directory(void)
{
#if defined(SIL_PLATFORM_ANDROID)
    return android_external_data_path;
#elif defined(SIL_PLATFORM_IOS)
    return ios_get_application_support_path();
#elif defined(SIL_PLATFORM_PSP)
    return psp_executable_dir();
#elif defined(SIL_PLATFORM_LINUX) || defined(SIL_PLATFORM_MACOSX) || defined(SIL_PLATFORM_WINDOWS)
    const char *dir = userdata_get_data_path();
    ASSERT(dir);
    return dir;
#else
# error Log directory unknown on this system!
#endif
}
/**
 * log_directory:  Return the pathname of the directory to which log files
 * are written.
 */
Return the pathname of the directory to which log files
are written.
Return the pathname of the directory to which log files are written .
static const char *log_directory(void)
{
#if defined(SIL_PLATFORM_ANDROID)
    return android_external_data_path;
#elif defined(SIL_PLATFORM_IOS)
    return ios_get_application_support_path();
#elif defined(SIL_PLATFORM_PSP)
    return psp_executable_dir();
#elif defined(SIL_PLATFORM_LINUX) || defined(SIL_PLATFORM_MACOSX) || defined(SIL_PLATFORM_WINDOWS)
    const char *dir = userdata_get_data_path();
    ASSERT(dir);
    return dir;
#else
# error Log directory unknown on this system!
#endif
}
static const char * log_directory ( void ) { #if defined ( SIL_PLATFORM_ANDROID ) return android_external_data_path ; #elif defined ( SIL_PLATFORM_IOS ) return ios_get_application_support_path ( ) ; #elif defined ( SIL_PLATFORM_PSP ) return psp_executable_dir ( ) ; #elif defined ( SIL_PLATFORM_LINUX ) || defined ( SIL_PLATFORM_MACOSX ) || defined ( SIL_PLATFORM_WINDOWS ) const char * dir = userdata_get_data_path ( ) ; ASSERT ( dir ) ; return dir ; #else # error  Log directory unknown on this system! #endif }
log_directory:  Return the pathname of the directory to which log files
 are written.
log_directory : Return the pathname of the directory to which log files are written .