Ver código fonte

Add -nomangle flag to interrogate do disable mangled aliases of function names

rdb 10 anos atrás
pai
commit
4ebbe0748d
1 arquivos alterados com 10 adições e 1 exclusões
  1. 10 1
      dtool/src/interrogate/interrogate.cxx

+ 10 - 1
dtool/src/interrogate/interrogate.cxx

@@ -79,6 +79,7 @@ enum CommandOptions {
   CO_promiscuous,
   CO_spam,
   CO_noangles,
+  CO_nomangle,
   CO_help,
 };
 
@@ -106,6 +107,7 @@ static struct option long_options[] = {
   { "promiscuous", no_argument, NULL, CO_promiscuous },
   { "spam", no_argument, NULL, CO_spam },
   { "noangles", no_argument, NULL, CO_noangles },
+  { "nomangle", no_argument, NULL, CO_nomangle },
   { "help", no_argument, NULL, CO_help },
   { NULL }
 };
@@ -284,7 +286,10 @@ void show_help() {
 
     << "  -noangles\n"
     << "        Treat #include <file> the same as #include \"file\".  This means -I\n"
-    << "        and -S are equivalent.\n\n";
+    << "        and -S are equivalent.\n\n"
+
+    << "  -nomangle\n"
+    << "        Do not generate camelCase equivalents of functions.\n\n";
 }
 
 // handle commandline -D options
@@ -446,6 +451,10 @@ main(int argc, char **argv) {
       parser._noangles = true;
       break;
 
+    case CO_nomangle:
+      mangle_names = false;
+      break;
+
     case 'h':
     case CO_help:
       show_help();