Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2011-11-23 19:39:29 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2011-11-23 19:39:29 +0400
commit0f3b1d23de1177e10628eaeb5dded6c172175c26 (patch)
tree1dc414faedb2d68f55ed15ff4abaee68a8fc8fab /source/blender/makesrna/RNA_access.h
parent307a0f6fec426ebd5ce989406e4c0f021c60b04e (diff)
MSVC 2005 and higher supports variable length macroses, so RNA_warning can report
warnings in nicer format even on msvc now.
Diffstat (limited to 'source/blender/makesrna/RNA_access.h')
-rw-r--r--source/blender/makesrna/RNA_access.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/makesrna/RNA_access.h b/source/blender/makesrna/RNA_access.h
index 54711a2b025..35549b613ea 100644
--- a/source/blender/makesrna/RNA_access.h
+++ b/source/blender/makesrna/RNA_access.h
@@ -995,8 +995,8 @@ StructRNA *ID_code_to_RNA_type(short idcode);
/* macro which inserts the function name */
#ifdef __GNUC__
# define RNA_warning(format, args...) _RNA_warning("%s: " format "\n", __func__, ##args)
-#else /* MSVC doesnt support variable length args in macros */
-# define RNA_warning _RNA_warning
+#else
+# define RNA_warning(format, args, ...) _RNA_warning("%s: " format "\n", __FUNCTION__, __VA_ARGS__)
#endif
void _RNA_warning(const char *format, ...)