Started implementation of parser
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
|
||||
namespace LXC::Util
|
||||
{
|
||||
// Util function to stop/ the program //
|
||||
// Util function to stop the program //
|
||||
inline void Stop()
|
||||
{
|
||||
// Only checks for a debugger when compiled in Debug mode //
|
||||
@@ -64,10 +64,15 @@ namespace LXC::Util
|
||||
{
|
||||
public:
|
||||
// Constructor for function sucess //
|
||||
ReturnVal(ResultType result)
|
||||
ReturnVal(const ResultType& result)
|
||||
: m_Result(result), m_FunctionFailed(false)
|
||||
{}
|
||||
|
||||
// Move constructor (for large objects) //
|
||||
ReturnVal(ResultType&& result)
|
||||
: m_Result(std::move(result)), m_FunctionFailed(false)
|
||||
{}
|
||||
|
||||
// Constructor for function fail //
|
||||
ReturnVal(FunctionFail<ErrorType> error)
|
||||
: m_Error(error.error), m_FunctionFailed(true)
|
||||
|
||||
Reference in New Issue
Block a user