mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-19 16:54:08 +10:00
Found a leak, moving to linux
This commit is contained in:
@@ -194,8 +194,8 @@ int hashLiteral(Literal lit) {
|
||||
return hash(res);
|
||||
}
|
||||
|
||||
// case LITERAL_FUNCTION:
|
||||
// //
|
||||
case LITERAL_FUNCTION:
|
||||
return 0;
|
||||
|
||||
case LITERAL_IDENTIFIER:
|
||||
return HASH_I(lit); //pre-computed
|
||||
|
||||
@@ -8,3 +8,5 @@ int hashLiteral(Literal lit);
|
||||
|
||||
void printLiteral(Literal literal);
|
||||
void printLiteralCustom(Literal literal, void (printFn)(const char*));
|
||||
|
||||
//TODO: copy literal (to be used in dictionaries and arrays, as well)
|
||||
|
||||
Reference in New Issue
Block a user