20 lines
334 B
C++
20 lines
334 B
C++
|
#include "NativeFunction.hpp"
|
||
|
|
||
|
namespace fk
|
||
|
{
|
||
|
/*explicit*/ NativeFunction::NativeFunction(native_t native)
|
||
|
: m_native { native }
|
||
|
{
|
||
|
}
|
||
|
|
||
|
/*virtual*/ NativeFunction::~NativeFunction()
|
||
|
{
|
||
|
}
|
||
|
|
||
|
std::shared_ptr<Constant>
|
||
|
NativeFunction::call(std::vector<std::shared_ptr<Constant>> args)
|
||
|
{
|
||
|
return m_native(args);
|
||
|
}
|
||
|
}
|