Updated Toy
This commit is contained in:
2
Toy
2
Toy
Submodule Toy updated: f4469fc53d...aeda0a0d94
@@ -192,8 +192,7 @@ int Box_hookEngine(Toy_Interpreter* interpreter, Toy_Literal identifier, Toy_Lit
|
|||||||
//load the dict with functions
|
//load the dict with functions
|
||||||
for (int i = 0; natives[i].name; i++) {
|
for (int i = 0; natives[i].name; i++) {
|
||||||
Toy_Literal name = TOY_TO_STRING_LITERAL(Toy_createRefString(natives[i].name));
|
Toy_Literal name = TOY_TO_STRING_LITERAL(Toy_createRefString(natives[i].name));
|
||||||
Toy_Literal func = TOY_TO_FUNCTION_LITERAL((void*)natives[i].fn, 0);
|
Toy_Literal func = TOY_TO_FUNCTION_NATIVE_LITERAL(natives[i].fn);
|
||||||
func.type = TOY_LITERAL_FUNCTION_NATIVE;
|
|
||||||
|
|
||||||
Toy_setLiteralDictionary(dictionary, name, func);
|
Toy_setLiteralDictionary(dictionary, name, func);
|
||||||
|
|
||||||
|
|||||||
@@ -95,8 +95,7 @@ int Box_hookInput(Toy_Interpreter* interpreter, Toy_Literal identifier, Toy_Lite
|
|||||||
//load the dict with functions
|
//load the dict with functions
|
||||||
for (int i = 0; natives[i].name; i++) {
|
for (int i = 0; natives[i].name; i++) {
|
||||||
Toy_Literal name = TOY_TO_STRING_LITERAL(Toy_createRefString(natives[i].name));
|
Toy_Literal name = TOY_TO_STRING_LITERAL(Toy_createRefString(natives[i].name));
|
||||||
Toy_Literal func = TOY_TO_FUNCTION_LITERAL((void*)natives[i].fn, 0);
|
Toy_Literal func = TOY_TO_FUNCTION_NATIVE_LITERAL(natives[i].fn);
|
||||||
func.type = TOY_LITERAL_FUNCTION_NATIVE;
|
|
||||||
|
|
||||||
Toy_setLiteralDictionary(dictionary, name, func);
|
Toy_setLiteralDictionary(dictionary, name, func);
|
||||||
|
|
||||||
|
|||||||
@@ -674,8 +674,7 @@ int Box_hookNode(Toy_Interpreter* interpreter, Toy_Literal identifier, Toy_Liter
|
|||||||
//load the dict with functions
|
//load the dict with functions
|
||||||
for (int i = 0; natives[i].name; i++) {
|
for (int i = 0; natives[i].name; i++) {
|
||||||
Toy_Literal name = TOY_TO_STRING_LITERAL(Toy_createRefString(natives[i].name));
|
Toy_Literal name = TOY_TO_STRING_LITERAL(Toy_createRefString(natives[i].name));
|
||||||
Toy_Literal func = TOY_TO_FUNCTION_LITERAL((void*)natives[i].fn, 0);
|
Toy_Literal func = TOY_TO_FUNCTION_NATIVE_LITERAL(natives[i].fn);
|
||||||
func.type = TOY_LITERAL_FUNCTION_NATIVE;
|
|
||||||
|
|
||||||
Toy_setLiteralDictionary(dictionary, name, func);
|
Toy_setLiteralDictionary(dictionary, name, func);
|
||||||
|
|
||||||
|
|||||||
@@ -514,8 +514,7 @@ int Toy_hookRunner(Toy_Interpreter* interpreter, Toy_Literal identifier, Toy_Lit
|
|||||||
//load the dict with functions
|
//load the dict with functions
|
||||||
for (int i = 0; natives[i].name; i++) {
|
for (int i = 0; natives[i].name; i++) {
|
||||||
Toy_Literal name = TOY_TO_STRING_LITERAL(Toy_createRefString(natives[i].name));
|
Toy_Literal name = TOY_TO_STRING_LITERAL(Toy_createRefString(natives[i].name));
|
||||||
Toy_Literal func = TOY_TO_FUNCTION_LITERAL((void*)natives[i].fn, 0);
|
Toy_Literal func = TOY_TO_FUNCTION_NATIVE_LITERAL(natives[i].fn);
|
||||||
func.type = TOY_LITERAL_FUNCTION_NATIVE;
|
|
||||||
|
|
||||||
Toy_setLiteralDictionary(dictionary, name, func);
|
Toy_setLiteralDictionary(dictionary, name, func);
|
||||||
|
|
||||||
|
|||||||
@@ -59,8 +59,7 @@ int Toy_hookStandard(Toy_Interpreter* interpreter, Toy_Literal identifier, Toy_L
|
|||||||
//load the dict with functions
|
//load the dict with functions
|
||||||
for (int i = 0; natives[i].name; i++) {
|
for (int i = 0; natives[i].name; i++) {
|
||||||
Toy_Literal name = TOY_TO_STRING_LITERAL(Toy_createRefString(natives[i].name));
|
Toy_Literal name = TOY_TO_STRING_LITERAL(Toy_createRefString(natives[i].name));
|
||||||
Toy_Literal func = TOY_TO_FUNCTION_LITERAL((void*)natives[i].fn, 0);
|
Toy_Literal func = TOY_TO_FUNCTION_NATIVE_LITERAL(natives[i].fn);
|
||||||
func.type = TOY_LITERAL_FUNCTION_NATIVE;
|
|
||||||
|
|
||||||
Toy_setLiteralDictionary(dictionary, name, func);
|
Toy_setLiteralDictionary(dictionary, name, func);
|
||||||
|
|
||||||
|
|||||||
@@ -376,8 +376,7 @@ int Toy_hookTimer(Toy_Interpreter* interpreter, Toy_Literal identifier, Toy_Lite
|
|||||||
//load the dict with functions
|
//load the dict with functions
|
||||||
for (int i = 0; natives[i].name; i++) {
|
for (int i = 0; natives[i].name; i++) {
|
||||||
Toy_Literal name = TOY_TO_STRING_LITERAL(Toy_createRefString(natives[i].name));
|
Toy_Literal name = TOY_TO_STRING_LITERAL(Toy_createRefString(natives[i].name));
|
||||||
Toy_Literal func = TOY_TO_FUNCTION_LITERAL((void*)natives[i].fn, 0);
|
Toy_Literal func = TOY_TO_FUNCTION_NATIVE_LITERAL(natives[i].fn);
|
||||||
func.type = TOY_LITERAL_FUNCTION_NATIVE;
|
|
||||||
|
|
||||||
Toy_setLiteralDictionary(dictionary, name, func);
|
Toy_setLiteralDictionary(dictionary, name, func);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user