Allow passing WrenValues to wrenCall().

This commit is contained in:
Bob Nystrom
2015-08-07 07:57:23 -07:00
parent 0b97b27cf4
commit 56d4d3e671
2 changed files with 13 additions and 5 deletions
+2
View File
@@ -174,6 +174,8 @@ WrenMethod* wrenGetMethod(WrenVM* vm, const char* module, const char* variable,
// will allocate its own string and copy the characters from this, so
// you don't have to worry about the lifetime of the string you pass to
// Wren.
// - "v" - A previously acquired WrenValue*. Passing this in does not implicitly
// release the value.
void wrenCall(WrenVM* vm, WrenMethod* method, const char* argTypes, ...);
// Releases memory associated with [method]. After calling this, [method] can