mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 23:04:08 +10:00
The value is displaying correctly, but not the type
This commit is contained in:
@@ -105,6 +105,19 @@ void runBinary(unsigned char* tb, size_t size) {
|
||||
Interpreter interpreter;
|
||||
initInterpreter(&interpreter, tb, size);
|
||||
runInterpreter(&interpreter);
|
||||
|
||||
//DEBUG
|
||||
Literal lit;
|
||||
|
||||
printf("DEBUG> ");
|
||||
if (getScopeVariable(interpreter.scope, TO_IDENTIFIER_LITERAL("name"), &lit)) {
|
||||
printLiteral(lit);
|
||||
}
|
||||
else {
|
||||
printf("Failed");
|
||||
}
|
||||
printf("\n");
|
||||
|
||||
freeInterpreter(&interpreter);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user