1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-07 19:32:49 +01:00
openrw/rwengine/include/audio/alCheck.hpp
2016-05-30 20:06:33 +02:00

12 lines
230 B
C++

#pragma once
#include <string>
void checkALerror(const std::string& file, unsigned int line);
#if RW_DEBUG
#define alCheck(stmt) do { stmt; checkALerror(__FILE__, __LINE__); } while(0)
#else
#define alCheck(stmt) stmt
#endif