gendynapi.py: Discard SDLMAIN_DECLSPEC functions.

Otherwise SDL_main and SDL_App* functions look like exported symbols instead
of functions the app is meant to implement.

Reference PR #8247.
main
Ryan C. Gordon 2023-11-01 21:47:42 -04:00
parent 9c664b0062
commit ac6b32bb02
No known key found for this signature in database
GPG Key ID: FA148B892AB48044
1 changed files with 7 additions and 1 deletions

View File

@ -134,7 +134,13 @@ def main():
# Discard if it doesn't contain 'SDLCALL'
if "SDLCALL" not in func:
if args.debug:
print(" Discard: " + func)
print(" Discard, doesn't have SDLCALL: " + func)
continue
# Discard if it contains 'SDLMAIN_DECLSPEC' (these are not SDL symbols).
if "SDLMAIN_DECLSPEC" in func:
if args.debug:
print(" Discard, has SDLMAIN_DECLSPEC: " + func)
continue
if args.debug: