From 621997ec8b2c059c4a1b5540a7a20627d32d20b4 Mon Sep 17 00:00:00 2001 From: Joshua Granick Date: Wed, 23 Sep 2015 15:38:59 -0700 Subject: [PATCH] Minor tweak --- lime/audio/openal/ALContext.hx | 2 +- lime/audio/openal/ALDevice.hx | 2 +- lime/system/CFFIPointer.hx | 8 ++++++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/lime/audio/openal/ALContext.hx b/lime/audio/openal/ALContext.hx index 743e4e59f..1aedec2c3 100644 --- a/lime/audio/openal/ALContext.hx +++ b/lime/audio/openal/ALContext.hx @@ -10,7 +10,7 @@ import lime.system.CFFIPointer; abstract ALContext(CFFIPointer) from CFFIPointer to CFFIPointer { - private function new (handle:CFFIPointer) { + private inline function new (handle:CFFIPointer) { this = handle; diff --git a/lime/audio/openal/ALDevice.hx b/lime/audio/openal/ALDevice.hx index 00005cceb..bec8702f0 100644 --- a/lime/audio/openal/ALDevice.hx +++ b/lime/audio/openal/ALDevice.hx @@ -10,7 +10,7 @@ import lime.system.CFFIPointer; abstract ALDevice(CFFIPointer) from CFFIPointer to CFFIPointer { - private function new (handle:CFFIPointer) { + private inline function new (handle:CFFIPointer) { this = handle; diff --git a/lime/system/CFFIPointer.hx b/lime/system/CFFIPointer.hx index da1213f58..7925da68b 100644 --- a/lime/system/CFFIPointer.hx +++ b/lime/system/CFFIPointer.hx @@ -1,10 +1,14 @@ package lime.system; +#if !macro +@:build(lime.system.CFFI.build()) +#end + abstract CFFIPointer(Dynamic) { - public function new (handle:Dynamic) { + public inline function new (handle:Dynamic) { this = handle; @@ -48,7 +52,7 @@ abstract CFFIPointer(Dynamic) { #if ((cpp || neko || nodejs) && !macro) - private static var lime_cffi_get_native_pointer = CFFI.load ("lime", "lime_cffi_get_native_pointer", 1); + @:cffi private static function lime_cffi_get_native_pointer (ptr:Dynamic):Float; #end