mirror of
https://github.com/micropython/micropython.git
synced 2026-01-04 11:10:14 +01:00
qemu-arm: Set stack limit in main.
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
#include "py/compile.h"
|
||||
#include "py/runtime0.h"
|
||||
#include "py/runtime.h"
|
||||
#include "py/stackctrl.h"
|
||||
#include "py/repl.h"
|
||||
#include "py/pfenv.h"
|
||||
|
||||
@@ -49,6 +50,7 @@ void do_str(const char *src) {
|
||||
}
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
mp_stack_set_limit(10240);
|
||||
mp_init();
|
||||
do_str("print('hello world!')");
|
||||
mp_deinit();
|
||||
|
||||
Reference in New Issue
Block a user