summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/sdl/osxutils.mm
blob: c71af922b59a670aae7ba5342c1c3988f7d63164 (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
// license:BSD-3-Clause
// copyright-holders:Vas Crabb
//============================================================
//
//  osxutils.m - Mac OS X utilities for SDLMAME
//
//  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];
}