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