From b9ffdb5cfd9a10ec66e4a5b6be01a606dc52281e Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Sun, 23 Jun 2013 13:59:06 +0000 Subject: 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. --- source/blender/makesrna/intern/makesrna.c | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'source/blender/makesrna/intern/makesrna.c') diff --git a/source/blender/makesrna/intern/makesrna.c b/source/blender/makesrna/intern/makesrna.c index 3c2e3ddb300..9686d7fab51 100644 --- a/source/blender/makesrna/intern/makesrna.c +++ b/source/blender/makesrna/intern/makesrna.c @@ -1659,12 +1659,15 @@ static void rna_def_property_funcs_header_cpp(FILE *f, StructRNA *srna, Property 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_prototype_cpp(FILE *f, StructRNA *UNUSED(srn static void rna_def_struct_function_header_cpp(FILE *f, StructRNA *srna, FunctionDefRNA *dfunc) { - FunctionRNA *func = dfunc->func; - - if (!dfunc->call) - return; - - fprintf(f, "\n\t/* %s */\n", func->description); + 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 - 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) -- cgit v1.2.3