unix: Support #if-able impl-specific cmdline options.

For example, we still build w/o GC enabled, so cannot really set heap size.
pull/417/head
Paul Sokolovsky 2014-04-02 20:29:18 +03:00
rodzic d4e7e06d7f
commit a55a5469c3
1 zmienionych plików z 11 dodań i 0 usunięć

Wyświetl plik

@ -218,8 +218,19 @@ int usage(void) {
"usage: py [-X <opt>] [-c <command>] [<filename>]\n"
"\n"
"Implementation specific options:\n"
);
int impl_opts_cnt = 0;
#if MICROPY_ENABLE_GC
printf(
" heapsize=<n> -- set the heap size for the GC\n"
);
impl_opts_cnt++;
#endif
if (impl_opts_cnt == 0) {
printf(" (none)\n");
}
return 1;
}