summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/sdl/osxutils.mm
diff options
context:
space:
mode:
Diffstat (limited to 'src/osd/sdl/osxutils.mm')
-rw-r--r--src/osd/sdl/osxutils.mm34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/osd/sdl/osxutils.mm b/src/osd/sdl/osxutils.mm
new file mode 100644
index 00000000000..c71af922b59
--- /dev/null
+++ b/src/osd/sdl/osxutils.mm
@@ -0,0 +1,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];
+}