diff options
author | Richard Linden <none@none> | 2013-09-05 14:21:57 -0700 |
---|---|---|
committer | Richard Linden <none@none> | 2013-09-05 14:21:57 -0700 |
commit | 9dc6478544711b1f03c9f7010421f9c8ebbbe008 (patch) | |
tree | 1d28248570ac6e48596c787734bc39a891d9752e /indra/llcommon/llpreprocessor.h | |
parent | 736efc7b574635d5c86a97a33b456dd79a035777 (diff) | |
parent | cbe397ad13665c7bc993e10d8fe1e4a876253378 (diff) |
Automated merge with http://bitbucket.org/lindenlab/viewer-interesting
Diffstat (limited to 'indra/llcommon/llpreprocessor.h')
-rwxr-xr-x | indra/llcommon/llpreprocessor.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/indra/llcommon/llpreprocessor.h b/indra/llcommon/llpreprocessor.h index 0fcc872690..309165da7f 100755 --- a/indra/llcommon/llpreprocessor.h +++ b/indra/llcommon/llpreprocessor.h @@ -191,9 +191,12 @@ #define LL_TO_STRING_HELPER(x) #x #define LL_TO_STRING(x) LL_TO_STRING_HELPER(x) -#define LL_FILE_LINENO(msg) __FILE__ "(" LL_TO_STRING(__LINE__) ") : " msg +#define LL_FILE_LINENO_MSG(msg) __FILE__ "(" LL_TO_STRING(__LINE__) ") : " msg +#define LL_GLUE_IMPL(x, y) x##y +#define LL_GLUE_TOKENS(x, y) LL_GLUE_IMPL(x, y) + #if LL_WINDOWS -#define LL_COMPILE_TIME_MESSAGE(msg) __pragma(message(LL_FILE_LINENO(msg))) +#define LL_COMPILE_TIME_MESSAGE(msg) __pragma(message(LL_FILE_LINENO_MSG(msg))) #else // no way to get gcc 4.2 to print a user-defined diagnostic message only when a macro is used #define LL_COMPILE_TIME_MESSAGE(msg) |