OpenClonk
C4AulCompiler::ConstexprEvaluator::ExpressionNotConstant Class Reference
Inheritance diagram for C4AulCompiler::ConstexprEvaluator::ExpressionNotConstant:
[legend]
Collaboration diagram for C4AulCompiler::ConstexprEvaluator::ExpressionNotConstant:
[legend]

Public Member Functions

template<typename... T>
 ExpressionNotConstant (const C4ScriptHost *host, const ::aul::ast::Node *n, const char *reason, T &&...args)
 
const char * what () const noexcept override
 

Protected Attributes

StdCopyStrBuf sMessage
 

Detailed Description

Definition at line 430 of file C4AulCompiler.cpp.

Constructor & Destructor Documentation

◆ ExpressionNotConstant()

template<typename... T>
C4AulCompiler::ConstexprEvaluator::ExpressionNotConstant::ExpressionNotConstant ( const C4ScriptHost host,
const ::aul::ast::Node n,
const char *  reason,
T &&...  args 
)
inline

Definition at line 434 of file C4AulCompiler.cpp.

434  :
435  C4AulParseError(Error(host, host, n, nullptr, reason, std::forward<T>(args)...)) {}

Member Function Documentation

◆ what()

const char * C4AulError::what ( ) const
overridenoexceptinherited

Definition at line 59 of file C4Aul.cpp.

60 {
61  return sMessage ? sMessage.getData() : "(unknown error)";
62 }
StdCopyStrBuf sMessage
Definition: C4Aul.h:44
const char * getData() const
Definition: StdBuf.h:442

References StdStrBuf::getData(), and C4AulError::sMessage.

Referenced by C4PropList::Call(), C4AulFunc::CheckParTypes(), C4AulExec::DirectExec(), C4AulScriptEngine::Link(), C4AulParse::Parse_Script(), C4AulCompiler::PreparseAstVisitor::visit(), and C4AulCompiler::ConstantResolver::visit().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ sMessage

StdCopyStrBuf C4AulError::sMessage
protectedinherited

The documentation for this class was generated from the following file: