Reorganize a bit.

This commit is contained in:
Bob Nystrom
2015-01-20 14:00:03 -08:00
parent 8c3759a457
commit 363dff2ffd
2 changed files with 23 additions and 23 deletions
+10 -10
View File
@@ -115,7 +115,12 @@ void wrenDefineStaticMethod(WrenVM* vm, const char* className,
const char* methodName, int numParams,
WrenForeignMethodFn method);
// Reads an numeric argument for a foreign call. This must only be called within
// Reads a boolean argument for a foreign call. This must only be called within
// a function provided to [wrenDefineMethod]. Retrieves the argument at [index]
// which ranges from 0 to the number of parameters the method expects - 1.
bool wrenGetArgumentBool(WrenVM* vm, int index);
// Reads a numeric argument for a foreign call. This must only be called within
// a function provided to [wrenDefineMethod]. Retrieves the argument at [index]
// which ranges from 0 to the number of parameters the method expects - 1.
double wrenGetArgumentDouble(WrenVM* vm, int index);
@@ -129,10 +134,10 @@ double wrenGetArgumentDouble(WrenVM* vm, int index);
// function returns, since the garbage collector may reclaim it.
const char* wrenGetArgumentString(WrenVM* vm, int index);
// Reads a boolean argument for a foreign call. This must only be called within
// a function provided to [wrenDefineMethod]. Retrieves the argument at [index]
// which ranges from 0 to the number of parameters the method expects - 1.
bool wrenGetArgumentBool(WrenVM* vm, int index);
// Provides a boolean return value for a foreign call. This must only be called
// within a function provided to [wrenDefineMethod]. Once this is called, the
// foreign call is done, and no more arguments can be read or return calls made.
void wrenReturnBool(WrenVM* vm, bool value);
// Provides a numeric return value for a foreign call. This must only be called
// within a function provided to [wrenDefineMethod]. Once this is called, the
@@ -154,9 +159,4 @@ void wrenReturnNull(WrenVM* vm);
// [text] will be calculated using `strlen()`.
void wrenReturnString(WrenVM* vm, const char* text, int length);
// Provides a boolean return value for a foreign call. This must only be called
// within a function provided to [wrenDefineMethod]. Once this is called, the
// foreign call is done, and no more arguments can be read or return calls made.
void wrenReturnBool(WrenVM* vm, bool value);
#endif