Skip to content
This repository has been archived by the owner. It is now read-only.
Browse files

SDL_assertion messages use "\n" instead of "\r\n" on non-Windows plat…

  • Loading branch information
icculus committed Dec 16, 2012
1 parent e45148d commit e8f9662af6b9a119bd3e86fed09e9757f0f8391f

File 1 of 1 in e8f9662

@@ -126,6 +126,12 @@ static void SDL_AbortAssertion(void)
static SDL_assert_state
SDL_PromptAssertion(const SDL_assert_data *data, void *userdata)
#ifdef __WIN32__
#define ENDLINE "\r\n"
#define ENDLINE "\n"

const char *envr;
SDL_assert_state state = SDL_ASSERTION_ABORT;
SDL_Window *window;
@@ -150,7 +156,8 @@ SDL_PromptAssertion(const SDL_assert_data *data, void *userdata)
SDL_snprintf(message, SDL_MAX_LOG_MESSAGE,
"Assertion failure at %s (%s:%d), triggered %u %s:\r\n '%s'",
"Assertion failure at %s (%s:%d), triggered %u %s:" ENDLINE
" '%s'",
data->function, data->filename, data->linenum,
data->trigger_count, (data->trigger_count == 1) ? "time" : "times",

0 comments on commit e8f9662

Please sign in to comment.