40 lines
755 B
C
Raw Normal View History

2007-11-13 18:02:18 -08:00
#ifndef _AL_THUNK_H_
#define _AL_THUNK_H_
#include "config.h"
#include "AL/al.h"
#include "AL/alc.h"
#ifdef __cplusplus
extern "C" {
#endif
void alThunkInit(void);
void alThunkExit(void);
ALenum alThunkNewEntry(ALuint *idx);
2007-11-13 18:02:18 -08:00
void alThunkRemoveEntry(ALuint index);
#if (SIZEOF_VOIDP > SIZEOF_UINT)
2007-11-13 18:02:18 -08:00
#define ALTHUNK_INIT() alThunkInit()
#define ALTHUNK_EXIT() alThunkExit()
#define ALTHUNK_NEWENTRY(p,i) alThunkNewEntry(i)
2007-11-13 18:02:18 -08:00
#define ALTHUNK_REMOVEENTRY(i) alThunkRemoveEntry(i)
#else
#define ALTHUNK_INIT()
#define ALTHUNK_EXIT()
#define ALTHUNK_NEWENTRY(p,i) ((*(i) = (ALuint)p),AL_NO_ERROR)
#define ALTHUNK_REMOVEENTRY(i) ((ALvoid)i)
2007-11-13 18:02:18 -08:00
#endif // (SIZEOF_VOIDP > SIZEOF_INT)
#ifdef __cplusplus
}
#endif
#endif //_AL_THUNK_H_