diff --git a/src/dynapi/gendynapi.py b/src/dynapi/gendynapi.py index 5e6a11b8c..b91f2ee7f 100755 --- a/src/dynapi/gendynapi.py +++ b/src/dynapi/gendynapi.py @@ -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: