summaryrefslogtreecommitdiffstatshomepage
path: root/py/mpconfig.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-04-05 20:35:48 +0100
committerDamien George <damien.p.george@gmail.com>2014-04-05 20:35:48 +0100
commit12bab72d93498958ddef26c1a2dd7c69a9f9cf8d (patch)
tree7415b5201b6dca0daf60a9968543b398fab49baa /py/mpconfig.h
parent8123a3339dc7381a079afa90649ce140075eb2e2 (diff)
downloadmicropython-12bab72d93498958ddef26c1a2dd7c69a9f9cf8d.tar.gz
micropython-12bab72d93498958ddef26c1a2dd7c69a9f9cf8d.zip
Improve GC finalisation code; add option to disable it.
Diffstat (limited to 'py/mpconfig.h')
-rw-r--r--py/mpconfig.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/py/mpconfig.h b/py/mpconfig.h
index 65577f06ca..22724c84e4 100644
--- a/py/mpconfig.h
+++ b/py/mpconfig.h
@@ -55,6 +55,11 @@
#define MICROPY_ENABLE_GC (0)
#endif
+// Whether to enable finalisers in the garbage collector (ie call __del__)
+#ifndef MICROPY_ENABLE_GC_FINALISER
+#define MICROPY_ENABLE_GC_FINALISER (0)
+#endif
+
// Whether to include REPL helper function
#ifndef MICROPY_ENABLE_REPL_HELPERS
#define MICROPY_ENABLE_REPL_HELPERS (0)