OpenClonk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
C4AulCompiler.cpp File Reference
#include "C4Include.h"
#include "script/C4AulCompiler.h"
#include <assert.h>
#include <inttypes.h>
#include "script/C4Aul.h"
#include "script/C4AulParse.h"
#include "script/C4AulScriptFunc.h"
#include "script/C4ScriptHost.h"
#include "C4AulWarnings.h"
Include dependency graph for C4AulCompiler.cpp:

Go to the source code of this file.

Classes

class  C4AulCompiler::PreparseAstVisitor
 
class  C4AulCompiler::CodegenAstVisitor
 
class  C4AulCompiler::ConstexprEvaluator
 
class  C4AulCompiler::ConstexprEvaluator::ExpressionNotConstant
 
class  C4AulCompiler::ConstantResolver
 

Macros

#define C4AUL_Inherited   "inherited"
 
#define C4AUL_SafeInherited   "_inherited"
 
#define C4AUL_DebugBreak   "__debugbreak"
 
#define DIAG(id, msg, enabled)   if (warning == C4AulWarningId::id && !enabled) return;
 
#define ENSURE_COND(cond, failmsg)   do { if (!(cond)) throw Error(target_host, host, n, Fn, failmsg); } while (0)
 
#define ENSURE_COND(cond, failmsg)   do { if (!(cond)) throw Error(host, host, n, nullptr, failmsg); } while (0)
 
#define INT_BINOP(code, op)   case code: v.SetInt(lhs._getInt() op rhs._getInt()); break
 
#define BOOL_BINOP(code, op)   case code: v.SetBool(lhs._getInt() op rhs._getInt()); break
 

Macro Definition Documentation

#define BOOL_BINOP (   code,
  op 
)    case code: v.SetBool(lhs._getInt() op rhs._getInt()); break
#define C4AUL_DebugBreak   "__debugbreak"

Definition at line 30 of file C4AulCompiler.cpp.

Referenced by C4AulCompiler::CodegenAstVisitor::visit().

#define C4AUL_Inherited   "inherited"

Definition at line 28 of file C4AulCompiler.cpp.

Referenced by C4AulCompiler::CodegenAstVisitor::visit().

#define C4AUL_SafeInherited   "_inherited"

Definition at line 29 of file C4AulCompiler.cpp.

Referenced by C4AulCompiler::CodegenAstVisitor::visit().

#define DIAG (   id,
  msg,
  enabled 
)    if (warning == C4AulWarningId::id && !enabled) return;
#define ENSURE_COND (   cond,
  failmsg 
)    do { if (!(cond)) throw Error(target_host, host, n, Fn, failmsg); } while (0)
#define ENSURE_COND (   cond,
  failmsg 
)    do { if (!(cond)) throw Error(host, host, n, nullptr, failmsg); } while (0)

Definition at line 1702 of file C4AulCompiler.cpp.

#define INT_BINOP (   code,
  op 
)    case code: v.SetInt(lhs._getInt() op rhs._getInt()); break