Started implementation of parser

This commit is contained in:
Pasha Bibko
2025-07-24 17:49:23 +01:00
parent 28049ece94
commit 90a958a30b
3 changed files with 94 additions and 8 deletions

View File

@@ -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)