Modules/Objects/public/primitives/MethodObject.hpp
2024-03-25 13:57:31 +03:00

24 lines
No EOL
609 B
C++

#pragma once
#include "primitives/BytecodeObject.hpp"
namespace tp::obj {
struct MethodObject : Object {
static ObjectType TypeData;
BytecodeObject* mBytecodeLink;
static void constructor(MethodObject* self);
static void copy(MethodObject* self, MethodObject* in);
static void destructor(MethodObject* self);
static alni save_size(MethodObject* self);
static void save(MethodObject* self, ArchiverOut& file_self);
static void load(ArchiverIn& file_self, obj::MethodObject* self);
void compile();
static MethodObject* create(const std::string& script);
};
}