Binding fix

This commit is contained in:
Joshua Granick
2018-04-26 14:11:58 -07:00
parent 6b49f4d240
commit c606ec5139
3 changed files with 6 additions and 5 deletions

View File

@@ -288,7 +288,7 @@ class NativeCFFI {
@:cffi private static function lime_alc_suspend_context (context:CFFIPointer):Void;
#if hl
@:hlNative("lime", "hl_lime_alc_open_device") private static function hl_lime_alc_open_device (devicename:hl.Bytes):lime.media.openal.ALDevice { return null; };
@:hlNative("lime", "lime_alc_open_device") private static function hl_lime_alc_open_device (devicename:hl.Bytes):lime.media.openal.ALDevice { return null; };
#end
@:cffi private static function lime_al_gen_filter():CFFIPointer;

View File

@@ -53,8 +53,10 @@
#if defined(linux) || defined(__linux__)
# define HL_LINUX
#ifndef _GNU_SOURCE
# define _GNU_SOURCE
#endif
#endif
#if defined(HL_IOS) || defined(HL_ANDROID) || defined(HL_TVOS)
# define HL_MOBILE

View File

@@ -12,9 +12,7 @@
#endif
#endif
#define HL_NAME(n) hl_lime_##n
#include <hl.h>
#include <hx/CFFIPrime.h>
#include <system/CFFIPointer.h>
#include <system/Mutex.h>
@@ -1889,7 +1887,7 @@ namespace lime {
}
HL_PRIM ALCdevice* HL_NAME (alc_open_device) (vbyte *devicename) {
HL_PRIM ALCdevice* hl_lime_alc_open_device (vbyte *devicename) {
ALCdevice* alcDevice = alcOpenDevice ((char*)devicename);
atexit (lime_al_atexit);
@@ -2053,10 +2051,11 @@ namespace lime {
DEFINE_PRIME1v (lime_alc_resume_device);
DEFINE_PRIME1v (lime_alc_suspend_context);
#define TDEVICE _ABSTRACT (alc_device)
#define TCONTEXT _ABSTRACT (alc_context)
DEFINE_HL_PRIM (TDEVICE, hl_lime_alc_open_device, _BYTES);
DEFINE_HL_PRIM (TDEVICE, lime_alc_open_device, _BYTES);
}