diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-10-03 05:44:00 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-10-03 05:44:00 +0400 |
commit | 05884e09beed97669fbec4d35b4e9427bfe997d3 (patch) | |
tree | fa464b01646aa2d1c352ef632429999e718e40b0 /source/blender/blenkernel/BKE_utildefines.h | |
parent | bcf6726b0b1dd78d8bf6c0b843aa5b2e833dadaf (diff) |
- rna bugfix where ints were not clamped and would overflow, now raise an error and print valid range.
- fixed WM_OT_context_cycle_int was causing problems with int overflow, now it cycles properly.
- rename QUOTE macro to STRINGIFY_ARG, and added STRINGIFY, which is used more often since it gives the value as a string.
Diffstat (limited to 'source/blender/blenkernel/BKE_utildefines.h')
-rw-r--r-- | source/blender/blenkernel/BKE_utildefines.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source/blender/blenkernel/BKE_utildefines.h b/source/blender/blenkernel/BKE_utildefines.h index 925b1d7171a..5a6a151afee 100644 --- a/source/blender/blenkernel/BKE_utildefines.h +++ b/source/blender/blenkernel/BKE_utildefines.h @@ -38,8 +38,11 @@ #define TRUE 1 #endif -/* Macro to convert a value to string in the preprocessor */ -#define QUOTE(x) #x +/* Macro to convert a value to string in the preprocessor + * STRINGIFY_ARG: gives the defined name in the string + * STRINGIFY: gives the defined value. */ +#define STRINGIFY_ARG(x) #x +#define STRINGIFY(x) STRINGIFY_ARG(x) /* these values need to be hardcoded in structs, dna does not recognize defines */ /* also defined in DNA_space_types.h */ |