You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This code is compiled into a shared library and not an executable where
the C `main` entry point is used. The only entry points actually used
are the symbols called by the JNI. Rename this "main" function to
`run_python` to avoid confusion. This also allows changing the interface
without breaking the standard C `main` interface. This could be used to
pass in the Python entry point without using environment variables, for
example.
The exception is in the sdl2 bootstrap where `PythonActivity` extends
`SDLActivity`. `SDLActivity` calls `SDL_main` as the native entry point.
This was working before because the SDL headers define `main` as
`SDL_main`. Instead of relying on that, just implement `SDL_main` as a
wrapper around `run_python` when needed.
0 commit comments