view lua/luadyncall/src/cocoautil.m @ 61:c5a69c454963 default tip

- allow use of 'None' with 'Z' - bumped version to 1.4 (be in sync current dyncall version)
author Tassilo Philipp
date Mon, 03 Apr 2023 19:06:07 +0200
parents 0cfcc391201f
children
line wrap: on
line source

#import  <Foundation/NSAutoreleasePool.h>
#import  <AppKit/NSApplication.h>
NSAutoreleasePool* pool;

#ifdef __cplusplus
extern "C" {
#endif
  void CocoaInit();
  void CocoaQuit();
#ifdef __cplusplus
}
#endif

void CocoaInit()
{
  [[NSAutoreleasePool alloc] init];
  NSApplicationLoad();
}

void CocoaQuit()
{
  [pool drain]; 
}