summaryrefslogtreecommitdiff
path: root/quickjs.h
diff options
context:
space:
mode:
authorbellard <6490144+bellard@users.noreply.github.com>2021-03-27 11:17:31 +0100
committerbellard <6490144+bellard@users.noreply.github.com>2021-03-27 11:17:31 +0100
commitb5e62895c619d4ffc75c9d822c8d85f1ece77e5b (patch)
treec47bdf65103103b4f716ac52730d9cc24f398ca6 /quickjs.h
parent204682fb87ab9312f0cf81f959ecd181180457bc (diff)
downloadquickjs-b5e62895c619d4ffc75c9d822c8d85f1ece77e5b.tar.gz
quickjs-b5e62895c619d4ffc75c9d822c8d85f1ece77e5b.zip
2021-03-27 release
Diffstat (limited to 'quickjs.h')
-rw-r--r--quickjs.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/quickjs.h b/quickjs.h
index 92457a2..d4a5cd3 100644
--- a/quickjs.h
+++ b/quickjs.h
@@ -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);