Skip to content
Snippets Groups Projects
Verified Commit 3c546ddb authored by Houtan Bastani's avatar Houtan Bastani
Browse files

macro processor: declare function const

parent a8b7bd31
Branches
Tags
No related merge requests found
......@@ -67,7 +67,7 @@ Environment::getFunction(const string &name) const
}
codes::BaseType
Environment::getType(const string &name)
Environment::getType(const string &name) const
{
return getVariable(name)->eval()->getType();
}
......
......@@ -40,7 +40,7 @@ namespace macro
void define(FunctionPtr func, ExpressionPtr value);
ExpressionPtr getVariable(const string &name) const;
tuple<FunctionPtr, ExpressionPtr> getFunction(const string &name) const;
codes::BaseType getType(const string &name);
codes::BaseType getType(const string &name) const;
bool isVariableDefined(const string &name) const noexcept;
bool isFunctionDefined(const string &name) const noexcept;
inline bool isSymbolDefined(const string &name) const noexcept { return isVariableDefined(name) || isFunctionDefined(name); }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment