annotate R/rdc/src/cocoa.m_off @ 50:edf5c85de5ac
put pyi next to so for mypy to pick it up, directly
author |
Tassilo Philipp |
date |
Sat, 14 Nov 2020 21:18:09 +0100 (2020-11-14) |
parents |
0cfcc391201f |
children |
|
rev |
line source |
0
|
1 #ifdef __APPLE__
|
|
2 #import <Foundation/NSAutoreleasePool.h>
|
|
3
|
|
4 NSAutoreleasePool* newPool()
|
|
5 {
|
|
6 NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
|
|
7 return(pool);
|
|
8 }
|
|
9
|
|
10 void releasePool(NSAutoreleasePool* pool)
|
|
11 {
|
|
12 [pool release];
|
|
13 }
|
|
14 #endif
|
|
15
|