mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-12-10 08:32:40 +00:00
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.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user