include/SDL_stdinc.h
changeset 10393 6cf7d55773b3
parent 9998 f67cf37e9cd4
child 10481 42a679ff48e0
     1.1 --- a/include/SDL_stdinc.h	Sat Oct 01 10:08:34 2016 -0700
     1.2 +++ b/include/SDL_stdinc.h	Sat Oct 01 10:28:00 2016 -0700
     1.3 @@ -94,6 +94,13 @@
     1.4  #define SDL_TABLESIZE(table)    SDL_arraysize(table)
     1.5  
     1.6  /**
     1.7 + *  Macro useful for building other macros with strings in them
     1.8 + *
     1.9 + *  e.g. #define LOG_ERROR(X) OutputDebugString(SDL_STRINGIFY_ARG(__FUNCTION__) ": " X "\n")
    1.10 + */
    1.11 +#define SDL_STRINGIFY_ARG(arg)  #arg
    1.12 +
    1.13 +/**
    1.14   *  \name Cast operators
    1.15   *
    1.16   *  Use proper C++ casts when compiled as C++ to be compatible with the option