forked from ground/ground
Band-aid fix for null type
This commit is contained in:
@@ -225,6 +225,9 @@ void addArgsToGroundFunction(GroundFunction* function, GroundValueType type, cha
|
||||
};
|
||||
|
||||
GroundValueType stringToValueType(char* in) {
|
||||
if (in == NULL) {
|
||||
return ANY;
|
||||
}
|
||||
if (strcmp(in, "int") == 0) {
|
||||
return INT;
|
||||
}
|
||||
|
||||
@@ -362,6 +362,9 @@ void printGroundArg(GroundArg* ga) {
|
||||
break;
|
||||
}
|
||||
case TYPEREF: {
|
||||
if (ga->value.refName != NULL) {
|
||||
printf("-any ");
|
||||
}
|
||||
printf("-%s", ga->value.refName);
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user