Files
openal-soft/OpenAL32/Include/alError.h
T
2018-01-24 17:07:01 -08:00

29 lines
771 B
C

#ifndef _AL_ERROR_H_
#define _AL_ERROR_H_
#include "alMain.h"
#ifdef __cplusplus
extern "C" {
#endif
extern ALboolean TrapALError;
ALvoid alSetError(ALCcontext *context, ALenum errorCode, ALuint objid, const char *msg);
#define SETERR_GOTO(ctx, err, objid, msg, lbl) do { \
alSetError((ctx), (err), (objid), (msg)); \
goto lbl; \
} while(0)
#define SETERR_RETURN(ctx, err, objid, msg, retval) do { \
alSetError((ctx), (err), (objid), (msg)); \
return retval; \
} while(0)
#ifdef __cplusplus
}
#endif
#endif