move NULL check to import side

This commit is contained in:
takase1121
2021-12-01 20:42:49 +08:00
parent b42f48782b
commit aff1261b08
2 changed files with 9 additions and 2 deletions
-1
View File
@@ -699,7 +699,6 @@ static void* api_require(const char* symbol) {
if (strcmp(nodes[i].symbol, symbol) == 0)
return nodes[i].address;
}
fprintf(stderr, "WARNING: %s is not available\n", symbol);
return NULL;
}