Skip to content
Permalink
Browse files

Watcom supports __FUNCTION__ identifier (and surely not __PRETTY_FUNC…

…TION__)

Partially fixes Bugzilla #3758.
  • Loading branch information
sezero committed Aug 18, 2017
1 parent bdb7bfd commit c68d3ab78527fb9fd6dc845d7e5bc63d60e4ef1e
Showing with 3 additions and 3 deletions.
  1. +1 −1 include/SDL_assert.h
  2. +1 −1 src/render/opengl/SDL_render_gl.c
  3. +1 −1 src/render/opengles2/SDL_render_gles2.c
@@ -65,7 +65,7 @@ assert can have unique static variables associated with it.

#if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) /* C99 supports __func__ as a standard. */
# define SDL_FUNCTION __func__
#elif ((__GNUC__ >= 2) || defined(_MSC_VER))
#elif ((__GNUC__ >= 2) || defined(_MSC_VER) || defined (__WATCOMC__))
# define SDL_FUNCTION __FUNCTION__
#else
# define SDL_FUNCTION "???"
@@ -260,7 +260,7 @@ GL_CheckAllErrors (const char *prefix, SDL_Renderer *renderer, const char *file,

#if 0
#define GL_CheckError(prefix, renderer)
#elif defined(_MSC_VER)
#elif defined(_MSC_VER) || defined(__WATCOMC__)
#define GL_CheckError(prefix, renderer) GL_CheckAllErrors(prefix, renderer, __FILE__, __LINE__, __FUNCTION__)
#else
#define GL_CheckError(prefix, renderer) GL_CheckAllErrors(prefix, renderer, __FILE__, __LINE__, __PRETTY_FUNCTION__)
@@ -258,7 +258,7 @@ GL_CheckAllErrors (const char *prefix, SDL_Renderer *renderer, const char *file,

#if 0
#define GL_CheckError(prefix, renderer)
#elif defined(_MSC_VER)
#elif defined(_MSC_VER) || defined(__WATCOMC__)
#define GL_CheckError(prefix, renderer) GL_CheckAllErrors(prefix, renderer, __FILE__, __LINE__, __FUNCTION__)
#else
#define GL_CheckError(prefix, renderer) GL_CheckAllErrors(prefix, renderer, __FILE__, __LINE__, __PRETTY_FUNCTION__)

0 comments on commit c68d3ab

Please sign in to comment.