tweaked get return
This commit is contained in:
@ -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