Renders rendering under renders

This commit is contained in:
2022-11-04 12:04:59 +01:00
parent c32fca6a23
commit 0c145b4e5b
5 changed files with 12 additions and 15 deletions

View File

@@ -559,10 +559,13 @@ static int nativeCallNode(Interpreter* interpreter, LiteralArray* arguments) {
return -1;
}
//call the function
Literal result = callEngineNodeLiteral(AS_OPAQUE(nodeLiteral), interpreter, fnName);
char* strptr = AS_STRING(fnName);
Literal fnNameIdentifier = TO_IDENTIFIER_LITERAL(copyString(strptr, strlen(strptr)), strlen(strptr));
// pushLiteralArray(&interpreter->stack, result);
//call the function
Literal result = callEngineNodeLiteral(AS_OPAQUE(nodeLiteral), interpreter, fnNameIdentifier);
pushLiteralArray(&interpreter->stack, result);
//cleanup
freeLiteral(nodeLiteral);