Skip to content

Commit

Permalink
MicroPython: Re-enable cppmem.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gadgetoid committed Aug 15, 2024
1 parent b711011 commit 2d9a93d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion modules/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ enable_ulab()
include(modules_py/modules_py)

# C++ Magic Memory
# include(cppmem/micropython)
include(cppmem/micropython)

# Disable build-busting C++ exceptions
include(micropython-disable-exceptions)
3 changes: 3 additions & 0 deletions modules/py_frozen/boot.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import cppmem
# Switch C++ memory allocations to use MicroPython's heap
cppmem.set_mode(cppmem.MICROPYTHON)
Empty file removed modules/py_frozen/presto_testo.py
Empty file.

0 comments on commit 2d9a93d

Please sign in to comment.