diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-05-06 02:16:43 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-05-06 02:28:49 +0300 |
commit | f9e54e0ea53c774c4458c4af11764e5b929a2b33 (patch) | |
tree | c3caecd5b32920f55aff1b7d553be316c6dbf454 /unix/main.c | |
parent | 912ca7701d0749b6b1442e4e7e6e8cf979b10e2d (diff) | |
download | micropython-f9e54e0ea53c774c4458c4af11764e5b929a2b33.tar.gz micropython-f9e54e0ea53c774c4458c4af11764e5b929a2b33.zip |
modgc: Add new module for GC-related functionality.
Diffstat (limited to 'unix/main.c')
-rw-r--r-- | unix/main.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/unix/main.c b/unix/main.c index a7e4a907e3..5a7ea1c038 100644 --- a/unix/main.c +++ b/unix/main.c @@ -247,15 +247,6 @@ mp_obj_t qstr_info(void) { return mp_const_none; } -#if MICROPY_ENABLE_GC -// TODO: this doesn't belong here -STATIC mp_obj_t pyb_gc(void) { - gc_collect(); - return mp_const_none; -} -MP_DEFINE_CONST_FUN_OBJ_0(pyb_gc_obj, pyb_gc); -#endif - // Process options which set interpreter init options void pre_process_options(int argc, char **argv) { for (int a = 1; a < argc; a++) { @@ -338,9 +329,6 @@ int main(int argc, char **argv) { mp_store_name(qstr_from_str("mem_info"), mp_make_function_n(0, mem_info)); mp_store_name(qstr_from_str("qstr_info"), mp_make_function_n(0, qstr_info)); -#if MICROPY_ENABLE_GC - mp_store_name(qstr_from_str("gc"), (mp_obj_t)&pyb_gc_obj); -#endif // Here is some example code to create a class and instance of that class. // First is the Python, then the C code. |