using the callback pattern with Lua/LuaJIT

How would I use SDL3’s callback pattern using the LuaJIT FFI? If I were using C/C++ I could define SDL_MAIN_USE_CALLBACKS but LuaJIT can’t set C defines. I’ve tried setting up an app according to https://wiki.libsdl.org/SDL3/NonstandardStartup except with Lua callbacks but it doesn’t recognize SDL_RunApp. I am using a version of SDL that should have it and my FFI file is auto-generated from the source and has the other app callback functions in it, so it doesn’t seem to be a public function.

Am I stuck having to write a C file to define SDL_MAIN_USE_CALLBACKS and load Lua from there or am I just not seeing how to do this?