20 lines
293 B
C++
20 lines
293 B
C++
|
#include "Function.hpp"
|
||
|
#include "Value.hpp"
|
||
|
|
||
|
namespace jk
|
||
|
{
|
||
|
/*explicit*/ Function::Function(foreign_t foreign)
|
||
|
: m_foreign { foreign }
|
||
|
{
|
||
|
}
|
||
|
|
||
|
/*virtual*/ Function::~Function()
|
||
|
{
|
||
|
}
|
||
|
|
||
|
value_t Function::call(std::vector<value_t> const& args)
|
||
|
{
|
||
|
return m_foreign(args);
|
||
|
}
|
||
|
}
|