diff options
author | Damien George <damien.p.george@gmail.com> | 2014-01-03 14:22:03 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-01-03 14:22:03 +0000 |
commit | 1fb031744f5584d1bd0c88d28fbe7e261832c7a8 (patch) | |
tree | 5489409a916abae056054524be162dc0d10ab80b /unix-cpy/main.c | |
parent | 14f945c2cab2b44fcb75675eb1ec8eea8774660b (diff) | |
download | micropython-1fb031744f5584d1bd0c88d28fbe7e261832c7a8.tar.gz micropython-1fb031744f5584d1bd0c88d28fbe7e261832c7a8.zip |
Change mp_compile so that it returns a function object for the module.
Diffstat (limited to 'unix-cpy/main.c')
-rw-r--r-- | unix-cpy/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/unix-cpy/main.c b/unix-cpy/main.c index 2b59df4f37..eba97f527b 100644 --- a/unix-cpy/main.c +++ b/unix-cpy/main.c @@ -8,8 +8,8 @@ #include "lexer.h" #include "lexerunix.h" #include "parse.h" -#include "compile.h" #include "obj.h" +#include "compile.h" #include "runtime0.h" #include "runtime.h" @@ -37,10 +37,10 @@ void do_file(const char *file) { //printf("----------------\n"); //parse_node_show(pn, 0); //printf("----------------\n"); - bool comp_ok = mp_compile(pn, false); + mp_obj_t module_fun = mp_compile(pn, false); //printf("----------------\n"); - if (!comp_ok) { + if (module_fun == mp_const_none) { printf("compile error\n"); } } |