Objects Initial
This commit is contained in:
parent
0f639ba3b1
commit
94057d2a66
76 changed files with 7895 additions and 17 deletions
24
Objects/public/primitives/boolobject.h
Normal file
24
Objects/public/primitives/boolobject.h
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "core/object.h"
|
||||
|
||||
namespace obj {
|
||||
|
||||
struct BoolObject : Object {
|
||||
tp::alni val;
|
||||
|
||||
static ObjectType TypeData;
|
||||
static void constructor(BoolObject* self);
|
||||
static void copy(BoolObject* self, const BoolObject* in);
|
||||
|
||||
static BoolObject* create(bool in);
|
||||
|
||||
static void from_int(BoolObject* self, tp::alni in);
|
||||
static void from_float(BoolObject* self, tp::alnf in);
|
||||
static void from_string(BoolObject* self, tp::String in);
|
||||
static tp::String to_string(BoolObject* self);
|
||||
static tp::alni to_int(BoolObject* self);
|
||||
static tp::alnf to_float(BoolObject* self);
|
||||
};
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue