Conditionally disable macos bundle function

This commit is contained in:
Francesco Abbate 2021-08-19 11:32:18 +02:00
parent d9e73a97ea
commit 717f4eb782
1 changed files with 2 additions and 1 deletions

View File

@ -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() {