Berserk
Macros
ShaderCompiler.cpp File Reference
#include <core/Engine.hpp>
#include <render/shader/ShaderCompiler.hpp>
#include <tinyxml2.hpp>
Include dependency graph for ShaderCompiler.cpp:

Macros

#define BRK_SC_ERROR(what)
 
#define BRK_SC_ERROR_W(what, where)
 
#define BRK_SC_CHECK_ERROR(condition, what)
 
#define BRK_SC_CHECK_ERROR_W(condition, what, where)
 

Macro Definition Documentation

◆ BRK_SC_CHECK_ERROR

#define BRK_SC_CHECK_ERROR (   condition,
  what 
)
Value:
if (!(condition)) { \
BRK_SC_ERROR(what); \
} else { \
}

◆ BRK_SC_CHECK_ERROR_W

#define BRK_SC_CHECK_ERROR_W (   condition,
  what,
  where 
)
Value:
if (!(condition)) { \
BRK_SC_ERROR_W(what, where); \
} else { \
}

◆ BRK_SC_ERROR

#define BRK_SC_ERROR (   what)
Value:
mResult.error = BRK_TEXT(what); \
return false;
#define BRK_TEXT(text)
Definition: Config.hpp:53

◆ BRK_SC_ERROR_W

#define BRK_SC_ERROR_W (   what,
  where 
)
Value:
mResult.line = (where)->GetLineNum(); \
mResult.error = BRK_TEXT(what); \
return false;