Leave extraneous #ifdef blocks

This commit is contained in:
Nigel Stewart 2015-06-13 10:18:41 +10:00
parent 49eafff105
commit 0e88d39f4a

View File

@ -38,18 +38,17 @@ if (@ARGV)
parse_ext($ext); parse_ext($ext);
#make_separator($extname); #make_separator($extname);
print "#ifdef $extname\n\n";
my $extvar = $extname; my $extvar = $extname;
my $extvardef = $extname; my $extvardef = $extname;
$extvar =~ s/GL(X*)_/GL$1EW_/; $extvar =~ s/GL(X*)_/GL$1EW_/;
if (keys %$functions) if (keys %$functions)
{ {
print "#ifdef $extname\n\n";
print "static GLboolean _glewInit_$extname (" . $type . print "static GLboolean _glewInit_$extname (" . $type .
"EW_CONTEXT_ARG_DEF_INIT)\n{\n GLboolean r = GL_FALSE;\n"; "EW_CONTEXT_ARG_DEF_INIT)\n{\n GLboolean r = GL_FALSE;\n";
output_decls($functions, \&make_pfn_def_init); output_decls($functions, \&make_pfn_def_init);
print "\n return r;\n}\n\n"; print "\n return r;\n}\n\n";
print "#endif /* $extname */\n\n";
} }
#print "\nGLboolean " . prefix_varname($extvar) . " = GL_FALSE;\n\n";
print "#endif /* $extname */\n\n";
} }
} }