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/creator | |
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/creator')
-rw-r--r-- | source/creator/buildinfo.c | 5 | ||||
-rw-r--r-- | source/creator/creator.c | 2 |
2 files changed, 3 insertions, 4 deletions
diff --git a/source/creator/buildinfo.c b/source/creator/buildinfo.c index d745d826bd6..a14cb94b859 100644 --- a/source/creator/buildinfo.c +++ b/source/creator/buildinfo.c @@ -27,10 +27,9 @@ * ***** END GPL LICENSE BLOCK ***** */ -#define STRINGIFY(x) XSTRINGIFY(x) -#define XSTRINGIFY(x) #x - #ifdef BUILD_DATE +#include "BKE_utildefines.h" + char build_date[]= STRINGIFY(BUILD_DATE); char build_time[]= STRINGIFY(BUILD_TIME); char build_rev[]= STRINGIFY(BUILD_REV); diff --git a/source/creator/creator.c b/source/creator/creator.c index 4066d16186b..8e17bec361f 100644 --- a/source/creator/creator.c +++ b/source/creator/creator.c @@ -993,7 +993,7 @@ void setupArguments(bContext *C, bArgs *ba, SYS_SystemHandle *syshandle) BLI_argsAdd(ba, 4, "-E", "--engine", "<engine>\n\tSpecify the render engine\n\tuse -E help to list available engines", set_engine, C); BLI_argsAdd(ba, 4, "-F", "--render-format", format_doc, set_image_type, C); - BLI_argsAdd(ba, 4, "-t", "--threads", "<threads>\n\tUse amount of <threads> for rendering in background\n\t[1-" QUOTE(BLENDER_MAX_THREADS) "], 0 for systems processor count.", set_threads, NULL); + BLI_argsAdd(ba, 4, "-t", "--threads", "<threads>\n\tUse amount of <threads> for rendering in background\n\t[1-" STRINGIFY(BLENDER_MAX_THREADS) "], 0 for systems processor count.", set_threads, NULL); BLI_argsAdd(ba, 4, "-x", "--use-extension", "<bool>\n\tSet option to add the file extension to the end of the file", set_extension, C); } |