11#ifndef ARK_VM_PROCEDURE_HPP
12#define ARK_VM_PROCEDURE_HPP
53 Value operator()(std::vector<Value>&,
VM*)
const;
66struct std::hash<Ark::Procedure>
70 return std::hash<const void*> {}(
static_cast<const void*
>(&s.m_procedure));
Storage class to hold custom functions.
std::function< Value(std::vector< Value > &, VM *)> CallbackType
Value(*)(std::vector< Value > &, VM *) PointerType
Procedure(T &&cb)
Create a new procedure.
The ArkScript virtual machine, executing ArkScript bytecode.
bool operator<(const Namespace &, const Namespace &)
bool operator==(const Namespace &A, const Namespace &B)
std::size_t operator()(const Ark::Procedure &s) const noexcept