annotate lua/luadyncall/src/cocoautil.m @ 63:9b6cdffd30dd
- further fixes of inccorect overflow errors for int (and long on LLP64 systems)
* prev commit had bugs
* added overflow tests for also int, long, long long (for both, lp64 and llp64)
- while at it, fixing a reference leak when not using python with utf8 caching
author |
Tassilo Philipp |
date |
Sun, 19 May 2024 15:33:18 +0200 |
parents |
0cfcc391201f |
children |
|
rev |
line source |
0
|
1 #import <Foundation/NSAutoreleasePool.h>
|
|
2 #import <AppKit/NSApplication.h>
|
|
3 NSAutoreleasePool* pool;
|
|
4
|
|
5 #ifdef __cplusplus
|
|
6 extern "C" {
|
|
7 #endif
|
|
8 void CocoaInit();
|
|
9 void CocoaQuit();
|
|
10 #ifdef __cplusplus
|
|
11 }
|
|
12 #endif
|
|
13
|
|
14 void CocoaInit()
|
|
15 {
|
|
16 [[NSAutoreleasePool alloc] init];
|
|
17 NSApplicationLoad();
|
|
18 }
|
|
19
|
|
20 void CocoaQuit()
|
|
21 {
|
|
22 [pool drain];
|
|
23 }
|
|
24
|