1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-09-20 01:11:46 +02:00
openrw/rwlib/source/rw/defines.hpp

26 lines
538 B
C++
Raw Normal View History

#ifndef _LIBRW_DEFINES_HPP_
#define _LIBRW_DEFINES_HPP_
#include <iostream>
#if RW_DEBUG
2016-04-28 01:54:42 +02:00
#define RW_MESSAGE(msg) \
std::cout << __FILE__ << ":"<< __LINE__ << ": " << msg << std::endl
#define RW_ERROR(msg) \
std::cout << __FILE__ << ":"<< __LINE__ << ": " << msg << std::endl
#define RW_CHECK(cond, msg) \
2016-04-28 01:54:42 +02:00
if(!(cond)) RW_ERROR(msg)
#else
2016-04-28 01:54:42 +02:00
#define RW_MESSAGE(msg)
#define RW_ERROR(msg)
#define RW_CHECK(cond, msg)
#endif
2016-04-28 01:54:42 +02:00
#define RW_UNUSED(var) \
(void) var
#define RW_UNIMPLEMENTED(msg) \
RW_MESSAGE("Unimplemented" << msg)
#endif