[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [57664] trunk/blender/source/blender/ makesrna/intern/makesrna.c: Workaround visual studio 2012 compiler bug compiling large RNA_blender_cpp .h, removed

Brecht Van Lommel brechtvanlommel at pandora.be
Sun Jun 23 15:59:06 CEST 2013


Revision: 57664
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=57664
Author:   blendix
Date:     2013-06-23 13:59:06 +0000 (Sun, 23 Jun 2013)
Log Message:
-----------
Workaround visual studio 2012 compiler bug compiling large RNA_blender_cpp.h, removed
the comments/descriptions for now to make it smaller. Maybe eventual solution would be
to split this up but for now it's not a public API yet anyway.

Modified Paths:
--------------
    trunk/blender/source/blender/makesrna/intern/makesrna.c

Modified: trunk/blender/source/blender/makesrna/intern/makesrna.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/makesrna.c	2013-06-23 13:58:59 UTC (rev 57663)
+++ trunk/blender/source/blender/makesrna/intern/makesrna.c	2013-06-23 13:59:06 UTC (rev 57664)
@@ -1659,12 +1659,15 @@
 	if (prop->flag & (PROP_IDPROPERTY | PROP_BUILTIN))
 		return;
 	
+	/* disabled for now to avoid msvc compiler error due to large file size */
+#if 0
 	if (prop->name && prop->description && prop->description[0] != '\0')
 		fprintf(f, "\t/* %s: %s */\n", prop->name, prop->description);
 	else if (prop->name)
 		fprintf(f, "\t/* %s */\n", prop->name);
 	else
 		fprintf(f, "\t/* */\n");
+#endif
 
 	switch (prop->type) {
 		case PROP_BOOLEAN:
@@ -1854,14 +1857,15 @@
 
 static void rna_def_struct_function_header_cpp(FILE *f, StructRNA *srna, FunctionDefRNA *dfunc)
 {
-	FunctionRNA *func = dfunc->func;
+	if (dfunc->call) {
+		/* disabled for now to avoid msvc compiler error due to large file size */
+#if 0
+		FunctionRNA *func = dfunc->func;
+		fprintf(f, "\n\t/* %s */\n", func->description);
+#endif
 
-	if (!dfunc->call)
-		return;
-
-	fprintf(f, "\n\t/* %s */\n", func->description);
-
-	rna_def_struct_function_prototype_cpp(f, srna, dfunc, NULL, 1);
+		rna_def_struct_function_prototype_cpp(f, srna, dfunc, NULL, 1);
+	}
 }
 
 static void rna_def_property_funcs_impl_cpp(FILE *f, StructRNA *srna, PropertyDefRNA *dp)




More information about the Bf-blender-cvs mailing list