extern bool opts_werror;
extern bool opts_forcecrc;
extern uint16_t opts_forced_crc;
+extern bool opts_pp_only;
/*===================================================================*/
#define OPTS_FLAG(i) (!! (opts_flags[(i)/32] & (1<< ((i)%32))))
bool opts_dump = false;
bool opts_werror = false;
bool opts_forcecrc = false;
+bool opts_pp_only = false;
uint16_t opts_forced_crc;
printf(" -o, --output=file output file, defaults to progs.dat\n"
" -a filename add an asm file to be assembled\n"
" -s filename add a progs.src file to be used\n");
+ printf(" -E stop after preprocessing\n");
printf(" -f<flag> enable a flag\n"
" -fno-<flag> disable a flag\n"
" -std standard select one of the following standards\n"
exit(0);
break;
+ case 'E':
+ opts_pp_only = true;
+ break;
+
/* handle all -fflags */
case 'f':
util_strtocmd(argv[0]+2, argv[0]+2, strlen(argv[0]+2)+1);