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>2017-11-28 12:35:24 +0300
committerCampbell Barton <ideasman42@gmail.com>2017-11-28 12:35:24 +0300
commit604de7cbe8401ef781576eb587192a9d71ba35cf (patch)
tree91d576119a8ea1ae18e0597be7b0d757e6d4819e /source/blender/makesrna/intern/makesrna.c
parent91034646c7c93e77c2ffda5e67e5ee0b23207fc9 (diff)
parent7c64e33b012935764ee5358c0e0a5b983d9a78b0 (diff)
Merge branch 'master' into blender2.8
Diffstat (limited to 'source/blender/makesrna/intern/makesrna.c')
-rw-r--r--source/blender/makesrna/intern/makesrna.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/source/blender/makesrna/intern/makesrna.c b/source/blender/makesrna/intern/makesrna.c
index 293cef52b90..b927daf2ac0 100644
--- a/source/blender/makesrna/intern/makesrna.c
+++ b/source/blender/makesrna/intern/makesrna.c
@@ -46,6 +46,14 @@
# endif
#endif
+/**
+ * Variable to control debug output of makesrna.
+ * debugSRNA:
+ * - 0 = no output, except errors
+ * - 1 = detail actions
+ */
+static int debugSRNA = 0;
+
/* stub for BLI_abort() */
#ifndef NDEBUG
void BLI_system_backtrace(FILE *fp)
@@ -62,7 +70,9 @@ void BLI_system_backtrace(FILE *fp)
static int file_older(const char *file1, const char *file2)
{
struct stat st1, st2;
- /* printf("compare: %s %s\n", file1, file2); */
+ if (debugSRNA > 0) {
+ printf("compare: %s %s\n", file1, file2);
+ }
if (stat(file1, &st1)) return 0;
if (stat(file2, &st2)) return 0;
@@ -4141,7 +4151,9 @@ int main(int argc, char **argv)
return_status = 1;
}
else {
- fprintf(stderr, "Running makesrna\n");
+ if (debugSRNA > 0) {
+ fprintf(stderr, "Running makesrna\n");
+ }
makesrna_path = argv[0];
return_status = rna_preprocess(argv[1]);
}