Start sketching in the FFI.

This commit is contained in:
Bob Nystrom
2013-12-29 10:06:35 -08:00
parent 667d393fbb
commit 63d1255566
6 changed files with 153 additions and 14 deletions
+8
View File
@@ -244,6 +244,14 @@ struct WrenVM
// The externally-provided function used to allocate memory.
WrenReallocateFn reallocate;
// During a foreign function call, this will point to the first argument (the
// receiver) of the call on the fiber's stack.
Value* nativeCallSlot;
// During a foreign function call, this will contain the number of arguments
// to the function.
int nativeCallNumArgs;
};
// A generic allocation function that handles all explicit memory management.