diff options
| author | Damien George <damien@micropython.org> | 2025-09-26 00:56:04 +1000 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2025-10-10 14:49:09 +1100 |
| commit | 6ab3c3cb173bc28d39b8342cb7b66afeb29fae09 (patch) | |
| tree | 3d94cec84a885295b1eaab6542530bfc23143432 /mpy-cross/main.c | |
| parent | 639150e9f3fb8144368537b72187ee4890ba9b37 (diff) | |
mpy-cross/main: Replace mp_stack calls with mp_cstack_init_with_sp_here.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'mpy-cross/main.c')
| -rw-r--r-- | mpy-cross/main.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/mpy-cross/main.c b/mpy-cross/main.c index 9dcad3c5d..51e338bbc 100644 --- a/mpy-cross/main.c +++ b/mpy-cross/main.c @@ -34,7 +34,6 @@ #include "py/persistentcode.h" #include "py/runtime.h" #include "py/gc.h" -#include "py/stackctrl.h" #include "genhdr/mpversion.h" #ifdef _WIN32 #include "ports/windows/fmode.h" @@ -221,8 +220,6 @@ static char *backslash_to_forwardslash(char *path) { } MP_NOINLINE int main_(int argc, char **argv) { - mp_stack_set_limit(40000 * (sizeof(void *) / 4)); - pre_process_options(argc, argv); char *heap = malloc(heap_size); @@ -418,7 +415,7 @@ MP_NOINLINE int main_(int argc, char **argv) { } int main(int argc, char **argv) { - mp_stack_ctrl_init(); + mp_cstack_init_with_sp_here(40000 * (sizeof(void *) / 4)); return main_(argc, argv); } |
