move NULL check to import side

This commit is contained in:
takase1121 committed 2021-12-01 20:42:49 +08:00
1 parent b42f48782b
commit aff1261b08
2 files changed
+9 -2

No files matched your search

-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;
}