mirror of
https://github.com/wgh136/flutter_qjs.git
synced 2025-09-27 21:37:24 +00:00
add option to change max stack size.
This commit is contained in:
13
lib/ffi.dart
13
lib/ffi.dart
@@ -132,6 +132,19 @@ Pointer jsNewRuntime(
|
||||
return rt;
|
||||
}
|
||||
|
||||
/// DLLEXPORT void jsSetMaxStackSize(JSRuntime *rt, size_t stack_size)
|
||||
final void Function(
|
||||
Pointer,
|
||||
int,
|
||||
) jsSetMaxStackSize = qjsLib
|
||||
.lookup<
|
||||
NativeFunction<
|
||||
Void Function(
|
||||
Pointer,
|
||||
IntPtr,
|
||||
)>>("jsSetMaxStackSize")
|
||||
.asFunction();
|
||||
|
||||
/// void jsFreeRuntime(JSRuntime *rt)
|
||||
final void Function(
|
||||
Pointer,
|
||||
|
Reference in New Issue
Block a user