From: Felipe Huici Date: Tue, 8 Oct 2019 07:53:30 +0000 (+0200) Subject: Add optional main() X-Git-Tag: RELEASE-0.4~1 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=d0a32d6cf359a7ef2c8567ec595ca7f8a2523914;p=unikraft%2Flibs%2Fmicropython.git Add optional main() We add an optional main, selectable from the menu, that forwards parameters to Micropython's main function. Signed-off-by: Felipe Huici --- diff --git a/glue.c b/glue.c new file mode 100644 index 0000000..2848e90 --- /dev/null +++ b/glue.c @@ -0,0 +1,10 @@ +#include + +/* Import user configuration: */ +#include + +int main(int argc, char *argv[]) +{ + micropython_main(argc, argv); + return 0; +}