1
0
forked from Mirror/wren

wrenReturn___() -> wrenSlotSet___().

This turns those functions into general-purpose functions for writing
raw C values into slots on the foreign call stack.

Writing a return just means writing a value to slot 0.
This commit is contained in:
Bob Nystrom
2015-12-16 13:00:13 -08:00
parent 4b3c818ec5
commit 7fcdcf2f1a
16 changed files with 215 additions and 152 deletions

View File

@ -7,7 +7,7 @@
#include "benchmark.h"
#include "call.h"
#include "foreign_class.h"
#include "returns.h"
#include "slots.h"
#include "value.h"
// The name of the currently executing API test.
@ -36,7 +36,7 @@ static WrenForeignMethodFn bindForeignMethod(
method = foreignClassBindMethod(fullName);
if (method != NULL) return method;
method = returnsBindMethod(fullName);
method = slotsBindMethod(fullName);
if (method != NULL) return method;
method = valueBindMethod(fullName);