new object creation interface
This commit is contained in:
parent
c737f41d8a
commit
e937d189df
23 changed files with 103 additions and 84 deletions
|
|
@ -10,7 +10,7 @@ void BoolObject::constructor(BoolObject* self) { self->val = false; }
|
|||
void BoolObject::copy(BoolObject* self, const BoolObject* in) { self->val = in->val; }
|
||||
|
||||
BoolObject* BoolObject::create(bool in) {
|
||||
auto out = objects_api::cast<BoolObject>(NDO->create("bool"));
|
||||
auto out = objects_api::create<BoolObject>();
|
||||
out->val = alni(in);
|
||||
return out;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue