graduateDesign 7303741ce6 use hsi
2021-09-08 21:25:52 +08:00

34 lines
575 B
C

#include "PikaObj.h"
void _UpdateHandle(PikaObj *self)
{
// override the handle function here
}
void _beforDinit(PikaObj *self)
{
/* override in user code */
}
PikaObj *New_TinyObj(Args *args)
{
PikaObj *self = pikaMalloc(sizeof(PikaObj));
/* List */
self->attributeList = New_args(NULL);
/* attribute */
obj_setPtr(self, "_ctx", self);
obj_setStr(self, "_n", "root");
/* load */
if (NULL != args)
{
obj_load(self, args, "_n");
obj_load(self, args, "_ctx");
}
/* hard attribute */
return self;
}