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:
authorCampbell Barton <ideasman42@gmail.com>2013-01-17 13:11:51 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-01-17 13:11:51 +0400
commit9b57b2315cfc933e699775f2a005b0b03069e156 (patch)
tree80e196032d2e791cd9725993bdae046ea6b7939c /source/creator
parent146d1b9cab47378734dcc61562336f4582d68b0b (diff)
include svn revision in the crash log, also free smoothview on the off-chance you manage to exit blender while the view is moving :)
Diffstat (limited to 'source/creator')
-rw-r--r--source/creator/creator.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/source/creator/creator.c b/source/creator/creator.c
index 68a4866a381..6cee9b09a52 100644
--- a/source/creator/creator.c
+++ b/source/creator/creator.c
@@ -165,9 +165,10 @@ static int print_version(int argc, const char **argv, void *data);
/* for the callbacks: */
-#define BLEND_VERSION_STRING_FMT \
- "Blender %d.%02d (sub %d)\n", \
- BLENDER_VERSION / 100, BLENDER_VERSION % 100, BLENDER_SUBVERSION \
+#define BLEND_VERSION_FMT "Blender %d.%02d (sub %d)"
+#define BLEND_VERSION_ARG BLENDER_VERSION / 100, BLENDER_VERSION % 100, BLENDER_SUBVERSION
+/* pass directly to printf */
+#define BLEND_VERSION_STRING_FMT BLEND_VERSION_FMT "\n", BLEND_VERSION_ARG
/* Initialize callbacks for the modules that need them */
static void setCallbacks(void);
@@ -538,7 +539,13 @@ static void blender_crash_handler(int signum)
printf("Writing: %s\n", fname);
fflush(stdout);
- BLI_snprintf(header, sizeof(header), "# " BLEND_VERSION_STRING_FMT);
+ BLI_snprintf(header, sizeof(header), "# " BLEND_VERSION_FMT ", Revision: %s\n", BLEND_VERSION_ARG,
+#ifdef BUILD_DATE
+ build_rev
+#else
+ "Unknown"
+#endif
+ );
/* open the crash log */
errno = 0;