#include "NativeFunction.hpp" namespace zn { /*explicit*/ NativeFunction::NativeFunction(std::shared_ptr prototype, native_fn_t body) : m_prototype { prototype } , m_body { body } { } /*virtual*/ NativeFunction::~NativeFunction() { } std::shared_ptr NativeFunction::call(std::vector> const& args) { assert(m_body); return m_body(args); } }