add warning if the symbol cannot be exported

This commit is contained in:
takase1121 2021-11-08 12:17:50 +08:00
parent 8bcc2d20f4
commit b26ffb4731
No known key found for this signature in database
GPG Key ID: 60EEFFC68EB3031B
1 changed files with 1 additions and 0 deletions

View File

@ -146,6 +146,7 @@ generate_api_require() {
echo -e "\tfor (int i = 0; i < sizeof(nodes) / sizeof(fnptr_t); i++)"
echo -e "\t\tif (strcmp(nodes[i].name, symbol) == 0)"
echo -e "\t\t\treturn nodes[i].addr;"
echo -e "\tfprintf(stderr, \"warning: %s cannot be exported.\", symbol);"
echo -e "\treturn NULL;"
echo "}"
echo "#endif"