Skip to content

Commit 6ab3c3c

Browse files
committed
mpy-cross/main: Replace mp_stack calls with mp_cstack_init_with_sp_here.
Signed-off-by: Damien George <[email protected]>
1 parent 639150e commit 6ab3c3c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

mpy-cross/main.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
#include "py/persistentcode.h"
3535
#include "py/runtime.h"
3636
#include "py/gc.h"
37-
#include "py/stackctrl.h"
3837
#include "genhdr/mpversion.h"
3938
#ifdef _WIN32
4039
#include "ports/windows/fmode.h"
@@ -221,8 +220,6 @@ static char *backslash_to_forwardslash(char *path) {
221220
}
222221

223222
MP_NOINLINE int main_(int argc, char **argv) {
224-
mp_stack_set_limit(40000 * (sizeof(void *) / 4));
225-
226223
pre_process_options(argc, argv);
227224

228225
char *heap = malloc(heap_size);
@@ -418,7 +415,7 @@ MP_NOINLINE int main_(int argc, char **argv) {
418415
}
419416

420417
int main(int argc, char **argv) {
421-
mp_stack_ctrl_init();
418+
mp_cstack_init_with_sp_here(40000 * (sizeof(void *) / 4));
422419
return main_(argc, argv);
423420
}
424421

0 commit comments

Comments
 (0)