21 lines
414 B
C++
21 lines
414 B
C++
|
#include "StaticFunction.hpp"
|
||
|
|
||
|
namespace jk
|
||
|
{
|
||
|
/*explicit*/ StaticFunction::StaticFunction(static_fun_t fun)
|
||
|
: m_fun { fun }
|
||
|
{
|
||
|
}
|
||
|
|
||
|
/*virtual*/ StaticFunction::~StaticFunction()
|
||
|
{
|
||
|
}
|
||
|
|
||
|
void StaticFunction::call(std::shared_ptr<Node> node,
|
||
|
std::shared_ptr<Program> program,
|
||
|
std::shared_ptr<SymTable> sym)
|
||
|
{
|
||
|
m_fun(node, program, sym);
|
||
|
}
|
||
|
}
|