From 78d65e836801589078a8e8dbd261dec535478c69 Mon Sep 17 00:00:00 2001 From: castano Date: Sun, 18 Oct 2009 08:04:25 +0000 Subject: [PATCH] When compiling with gcc, define NV_FILE_LINE using gcc convention. --- src/nvcore/nvcore.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/nvcore/nvcore.h b/src/nvcore/nvcore.h index a91624b..92a34b0 100644 --- a/src/nvcore/nvcore.h +++ b/src/nvcore/nvcore.h @@ -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) \