<reponame>nickl-lang/nickl
#ifndef HEADER_GUARD_NK_VM_NATIVE_FN_ADAPTER
#define HEADER_GUARD_NK_VM_NATIVE_FN_ADAPTER

#include "nk/common/mem.hpp"
#include "nk/vm/common_types.hpp"

namespace nk {
namespace vm {

void *type_fn_prepareNativeInfo(
    Allocator &allocator,
    void *body_ptr,
    size_t argc,
    bool is_variadic);

void val_fn_invoke_native(type_t self, value_t ret, value_t args);

} // namespace vm
} // namespace nk

#endif // HEADER_GUARD_NK_VM_NATIVE_FN_ADAPTER
