Created
January 13, 2022 17:28
-
-
Save xenobrain/4e85edaa0da39c1b9de920636552976d to your computer and use it in GitHub Desktop.
SDL_Log_formatted
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define LOG_INFO(fmt, ...) do { \ | |
SDL_LogInfo (SDL_LOG_CATEGORY_APPLICATION, "%s:%d \n\t%s()\n\t\t" fmt, __FILE__, __LINE__, __func__, __VA_ARGS__); \ | |
} while (0) | |
#define LOG_WARN(fmt, ...) do { \ | |
SDL_LogWarn (SDL_LOG_CATEGORY_APPLICATION, "%s:%d \n\t%s()\n\t\t" fmt, __FILE__, __LINE__, __func__, __VA_ARGS__); \ | |
} while (0) | |
#define LOG_ERROR(fmt, ...) do { \ | |
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "%s:%d \n\t%s()\n\t\t" fmt, __FILE__, __LINE__, __func__, __VA_ARGS__); \ | |
} while (0) | |
#define LOG_VERBOSE(fmt, ...) do { \ | |
SDL_LogVerbose(SDL_LOG_CATEGORY_APPLICATION, "%s:%d \n\t%s()\n\t\t" fmt, __FILE__, __LINE__, __func__, __VA_ARGS__); \ | |
} while (0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment