Minor tweak

This commit is contained in:
Joshua Granick
2015-09-23 15:38:59 -07:00
parent 4a8fe40024
commit 621997ec8b
3 changed files with 8 additions and 4 deletions

View File

@@ -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;

View File

@@ -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;

View File

@@ -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