Added an assert log category, and NSLog support on Mac OS X and iOS

This commit is contained in:
Sam Lantinga 2012-10-30 12:30:02 -07:00
parent 57f18e2fc2
commit 8850825033
4 changed files with 58 additions and 4 deletions

View file

@ -59,12 +59,14 @@ extern "C" {
* \brief The predefined log categories
*
* By default the application category is enabled at the INFO level,
* and all other categories are enabled at the CRITICAL level.
* the assert category is enabled at the WARN level, and all other
* categories are enabled at the CRITICAL level.
*/
enum
{
SDL_LOG_CATEGORY_APPLICATION,
SDL_LOG_CATEGORY_ERROR,
SDL_LOG_CATEGORY_ASSERT,
SDL_LOG_CATEGORY_SYSTEM,
SDL_LOG_CATEGORY_AUDIO,
SDL_LOG_CATEGORY_VIDEO,