diff options
author | bellard <6490144+bellard@users.noreply.github.com> | 2021-03-27 11:17:31 +0100 |
---|---|---|
committer | bellard <6490144+bellard@users.noreply.github.com> | 2021-03-27 11:17:31 +0100 |
commit | b5e62895c619d4ffc75c9d822c8d85f1ece77e5b (patch) | |
tree | c47bdf65103103b4f716ac52730d9cc24f398ca6 /quickjs.h | |
parent | 204682fb87ab9312f0cf81f959ecd181180457bc (diff) | |
download | quickjs-b5e62895c619d4ffc75c9d822c8d85f1ece77e5b.tar.gz quickjs-b5e62895c619d4ffc75c9d822c8d85f1ece77e5b.zip |
2021-03-27 release
Diffstat (limited to 'quickjs.h')
-rw-r--r-- | quickjs.h | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -1,8 +1,8 @@ /* * QuickJS Javascript Engine * - * Copyright (c) 2017-2020 Fabrice Bellard - * Copyright (c) 2017-2020 Charlie Gordon + * Copyright (c) 2017-2021 Fabrice Bellard + * Copyright (c) 2017-2021 Charlie Gordon * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -333,7 +333,11 @@ JSRuntime *JS_NewRuntime(void); void JS_SetRuntimeInfo(JSRuntime *rt, const char *info); void JS_SetMemoryLimit(JSRuntime *rt, size_t limit); void JS_SetGCThreshold(JSRuntime *rt, size_t gc_threshold); +/* use 0 to disable maximum stack size check */ void JS_SetMaxStackSize(JSRuntime *rt, size_t stack_size); +/* should be called when changing thread to update the stack top value + used to check stack overflow. */ +void JS_UpdateStackTop(JSRuntime *rt); JSRuntime *JS_NewRuntime2(const JSMallocFunctions *mf, void *opaque); void JS_FreeRuntime(JSRuntime *rt); void *JS_GetRuntimeOpaque(JSRuntime *rt); |