tweaked get parameter

This commit is contained in:
Partho
2025-04-11 13:11:48 -04:00
parent 1f0a2c189d
commit 413a4854b4

View File

@ -515,6 +515,11 @@ TableNode *getParameter(TableNode *definition) {
"function. Invalid."); "function. Invalid.");
return undefined; return undefined;
} }
if(definition->additionalinfo == NULL){
printdebug(
"node has NULL additionalinfo. Invalid.");
return undefined;
}
if (strcmp(getType(definition), "primitive function type") != 0) { if (strcmp(getType(definition), "primitive function type") != 0) {
printdebug( printdebug(
"not checking the parameter of a function -- invalid op"); "not checking the parameter of a function -- invalid op");