tweaked get return
This commit is contained in:
1 parent
8bc5997996
commit
541a2ba44a
1 file changed
+5
@@ -541,6 +541,11 @@ TableNode *getReturn(TableNode *definition) {
|
|||||||
"not checking the return of a function -- invalid op");
|
"not checking the return of a function -- invalid op");
|
||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
|
if(definition->additionalinfo == NULL){
|
||||||
|
printdebug(
|
||||||
|
"node has NULL additionalinfo. Invalid.");
|
||||||
|
return undefined;
|
||||||
|
}
|
||||||
return definition->additionalinfo->FunTypeAdInfo->returntype;
|
return definition->additionalinfo->FunTypeAdInfo->returntype;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user