#ifndef fk_NATIVEFUNCTION_HPP #define fk_NATIVEFUNCTION_HPP #include "commons.hpp" #include "Constant.hpp" namespace fk { using native_t = std::function (Loc, std::vector>)>; class NativeFunction { public: explicit NativeFunction(native_t native); virtual ~NativeFunction(); std::shared_ptr call(Loc const& loc, std::vector> args); private: native_t m_native; }; } #endif