This repository has been archived on 2023-09-10. You can view files and clone it, but cannot push or open issues/pull-requests.
joko/lib/Function.cpp

20 lines
293 B
C++
Raw Normal View History

2023-09-09 22:03:28 +00:00
#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);
}
}