tweaked get return

This commit is contained in:
Partho
2025-04-11 13:08:43 -04:00
parent 8bc5997996
commit 541a2ba44a

View File

@ -541,6 +541,11 @@ TableNode *getReturn(TableNode *definition) {
"not checking the return of a function -- invalid op");
return undefined;
}
if(definition->additionalinfo == NULL){
printdebug(
"node has NULL additionalinfo. Invalid.");
return undefined;
}
return definition->additionalinfo->FunTypeAdInfo->returntype;
}