pub unsafe fn set_engine_ptr(engine: *mut Engine)
Initialize the global engine pointer. Must be called once at startup.
Must be called exactly once, before any FFI calls, from the main thread.