fixed getReturn to not return NULL
This commit is contained in:
@ -528,13 +528,13 @@ TableNode *getReturn(TableNode *definition) {
|
|||||||
printdebug(
|
printdebug(
|
||||||
"passed a NULL entry to getReturn "
|
"passed a NULL entry to getReturn "
|
||||||
"function. Invalid.");
|
"function. Invalid.");
|
||||||
return NULL;
|
return undefined;
|
||||||
}
|
}
|
||||||
if (definition == undefined) {
|
if (definition == undefined) {
|
||||||
printdebug(
|
printdebug(
|
||||||
"passed an undefined entry to getReturn "
|
"passed an undefined entry to getReturn "
|
||||||
"function. Invalid.");
|
"function. Invalid.");
|
||||||
return NULL;
|
return undefined;
|
||||||
}
|
}
|
||||||
if (strcmp(getType(definition), "primitive function type") != 0) {
|
if (strcmp(getType(definition), "primitive function type") != 0) {
|
||||||
printdebug(
|
printdebug(
|
||||||
|
Reference in New Issue
Block a user