blob: 4d87b32bf77b3ba9732ec85f7497c1a69765bd36 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
// license:BSD-3-Clause
// copyright-holders:Vas Crabb
//============================================================
//
// osxutils.m - Mac OS X utilities for SDLMAME
//
// Copyright (c) 1996-2006, Nicola Salmoria and the MAME Team.
// Visit http://mamedev.org for licensing and usage restrictions.
//
// SDLMAME by Olivier Galibert and R. Belmont
//
//============================================================
#import <Foundation/Foundation.h>
// MAMEOS headers
#import "osxutils.h"
//============================================================
// NewAutoreleasePool
//============================================================
void * NewAutoreleasePool(void)
{
return [[NSAutoreleasePool alloc] init];
}
//============================================================
// ReleaseAutoreleasePool
//============================================================
void ReleaseAutoreleasePool(void *pool)
{
[(NSAutoreleasePool *)pool release];
}
|