When compiling with gcc, define NV_FILE_LINE using gcc convention.

This commit is contained in:
castano 2009-10-18 08:04:25 +00:00
parent 18474cdb33
commit 78d65e8368

View File

@ -131,7 +131,11 @@
#define NV_DO_STRING_JOIN3(arg1, arg2, arg3) arg1 ## arg2 ## arg3
#define NV_STRING2(x) #x
#define NV_STRING(x) NV_STRING2(x)
#if NV_CC_GNUC
#define NV_FILE_LINE __FILE__ ":" NV_STRING(__LINE__) ": "
#else
#define NV_FILE_LINE __FILE__ "(" NV_STRING(__LINE__) ") : "
#endif
// Startup initialization macro.
#define NV_AT_STARTUP(some_code) \