Conditionally disable macos bundle function
This commit is contained in:
parent
d9e73a97ea
commit
717f4eb782
|
@ -1,6 +1,7 @@
|
|||
#import <Foundation/Foundation.h>
|
||||
#include "lua.h"
|
||||
|
||||
#ifdef MACOS_USE_BUNDLE
|
||||
void set_macos_bundle_resources(lua_State *L)
|
||||
{ @autoreleasepool
|
||||
{
|
||||
|
@ -25,7 +26,7 @@ void set_macos_bundle_resources(lua_State *L)
|
|||
lua_pushstring(L, resource_path);
|
||||
lua_setglobal(L, "MACOS_RESOURCES");
|
||||
}}
|
||||
|
||||
#endif
|
||||
|
||||
/* Thanks to mathewmariani, taken from his lite-macos github repository. */
|
||||
void enable_momentum_scroll() {
|
||||
|
|
Loading…
Reference in New Issue