diff options
author | Fabrice Bellard <fabrice@bellard.org> | 2025-04-07 11:47:57 +0200 |
---|---|---|
committer | Fabrice Bellard <fabrice@bellard.org> | 2025-04-07 11:47:57 +0200 |
commit | ec83bd209889277b7c9d1600df5a6e67c1f8dae0 (patch) | |
tree | fea30c037f1a948816369f851a3b3d19ff2c194c /quickjs.h | |
parent | c805d4f7846456bf6dade8b4f4258c85cbd178c3 (diff) | |
download | quickjs-ec83bd209889277b7c9d1600df5a6e67c1f8dae0.tar.gz quickjs-ec83bd209889277b7c9d1600df5a6e67c1f8dae0.zip |
qjs: allow SI suffixes in memory sizes - set default stack size to 1 MB
Diffstat (limited to 'quickjs.h')
-rw-r--r-- | quickjs.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -322,7 +322,9 @@ static inline JSValue __JS_NewShortBigInt(JSContext *ctx, int64_t d) #define JS_PROP_NO_ADD (1 << 16) /* internal use */ #define JS_PROP_NO_EXOTIC (1 << 17) /* internal use */ -#define JS_DEFAULT_STACK_SIZE (256 * 1024) +#ifndef JS_DEFAULT_STACK_SIZE +#define JS_DEFAULT_STACK_SIZE (1024 * 1024) +#endif /* JS_Eval() flags */ #define JS_EVAL_TYPE_GLOBAL (0 << 0) /* global code (default) */ |