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
parent
9c664b0062
commit
ac6b32bb02
|
@ -134,7 +134,13 @@ def main():
|
||||||
# Discard if it doesn't contain 'SDLCALL'
|
# Discard if it doesn't contain 'SDLCALL'
|
||||||
if "SDLCALL" not in func:
|
if "SDLCALL" not in func:
|
||||||
if args.debug:
|
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
|
continue
|
||||||
|
|
||||||
if args.debug:
|
if args.debug:
|
||||||
|
|
Loading…
Reference in New Issue