Fix variable naming styleguide

7220-lua-add-a-general-purpose-lexical-parser
elsid 2 years ago
parent 0ab3090385
commit 60eede6a1d
No known key found for this signature in database
GPG Key ID: 4DE04C198CBA7625

@ -90,12 +90,12 @@ namespace Interpreter
mStack.pop_back(); mStack.pop_back();
} }
Data& Runtime::operator[](int Index) Data& Runtime::operator[](int index)
{ {
if (Index < 0 || Index >= static_cast<int>(mStack.size())) if (index < 0 || index >= static_cast<int>(mStack.size()))
throw std::runtime_error("stack index out of range"); throw std::runtime_error("stack index out of range");
return mStack[mStack.size() - Index - 1]; return mStack[mStack.size() - index - 1];
} }
Context& Runtime::getContext() Context& Runtime::getContext()

@ -51,7 +51,7 @@ namespace Interpreter
void pop(); void pop();
///< pop stack ///< pop stack
Data& operator[](int Index); Data& operator[](int index);
///< Access stack member, counted from the top. ///< Access stack member, counted from the top.
Context& getContext(); Context& getContext();

Loading…
Cancel
Save