kolibrios/programs/develop/tinypy/tinypy/tpmain.c
jaeger c27ead6711 tinypy: can now run from shell and use command line parameters.
git-svn-id: svn://kolibrios.org@2073 a494cfbc-eb01-0410-851d-a64ba20cac60
2011-08-18 21:08:16 +00:00

20 lines
414 B
C

#include "tp.c"
/* INCLUDE */
const char header[]="TinyPy for kolibriOS";
extern _stdcall void kolibri_dbg_init(tp_vm *tp);
void main(int argc, const char *argv[]) {
tp_vm *tp = tp_init(argc, argv);
kolibri_dbg_init(tp);
kolibri_init(tp);
CONSOLE_INIT(header);
/* INIT */
tp_call(tp,"py2bc","tinypy",tp_None);
con_printf("Done");
tp_deinit(tp);
kol_exit();
return;
}
/**/