mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-16 20:28:04 +01:00
Make slots available to the API outside of foreign methods.
At any point in time, the user can call wrenEnsureSlots() which will implicitly create a fiber and point to its stack if needed.
This commit is contained in:
@ -22,7 +22,7 @@ void metaCompile(WrenVM* vm)
|
||||
|
||||
// Return the result. We can't use the public API for this since we have a
|
||||
// bare ObjFn.
|
||||
vm->foreignStackStart[0] = fn != NULL ? OBJ_VAL(fn) : NULL_VAL;
|
||||
vm->apiStack[0] = fn != NULL ? OBJ_VAL(fn) : NULL_VAL;
|
||||
}
|
||||
|
||||
static WrenForeignMethodFn bindMetaForeignMethods(WrenVM* vm,
|
||||
|
||||
Reference in New Issue
Block a user