diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-08-04 05:14:20 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-08-04 05:18:33 +0400 |
commit | a039f2bfc468ae293b1aa3643419f91c1723f5c9 (patch) | |
tree | d457662bbc02be1269c9007ed3d585c9291d2473 /source/blender/makesdna | |
parent | cc28e02a85d137d923045b29e584e9264da74c0d (diff) |
Macros: prevent instantiation of args for type checks
also make CHECK_TYPE_INLINE more strict
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r-- | source/blender/makesdna/DNA_ID.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesdna/DNA_ID.h b/source/blender/makesdna/DNA_ID.h index cb6d17ab6c7..1ba24f5d7d4 100644 --- a/source/blender/makesdna/DNA_ID.h +++ b/source/blender/makesdna/DNA_ID.h @@ -237,7 +237,7 @@ typedef struct PreviewImage { # undef GS #endif // #define GS(a) (*((short *)(a))) -#define GS(a) (CHECK_TYPE_INLINE(a, const char *), (*((short *)(a)))) +#define GS(a) (CHECK_TYPE_INLINE(a, char *), (*((short *)(a)))) #define ID_NEW(a) if ( (a) && (a)->id.newid ) (a) = (void *)(a)->id.newid #define ID_NEW_US(a) if ( (a)->id.newid) { (a) = (void *)(a)->id.newid; (a)->id.us++; } |