mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 23:04:08 +10:00
Forgot printing native functions
This commit is contained in:
@@ -187,9 +187,9 @@ void printLiteralCustom(Literal literal, void (printFn)(const char*)) {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
//TODO: functions
|
//TODO: functions
|
||||||
case LITERAL_FUNCTION: {
|
case LITERAL_FUNCTION:
|
||||||
|
case LITERAL_FUNCTION_NATIVE:
|
||||||
printFn("(function)");
|
printFn("(function)");
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case LITERAL_IDENTIFIER: {
|
case LITERAL_IDENTIFIER: {
|
||||||
@@ -452,6 +452,7 @@ bool literalsAreEqual(Literal lhs, Literal rhs) {
|
|||||||
return true;
|
return true;
|
||||||
|
|
||||||
case LITERAL_FUNCTION:
|
case LITERAL_FUNCTION:
|
||||||
|
case LITERAL_FUNCTION_NATIVE:
|
||||||
return false; //functions are never equal
|
return false; //functions are never equal
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user