2022-05-19 07:46:23 +08:00

39 lines
1.1 KiB
C

/* ******************************** */
/* Warning! Don't modify this file! */
/* ******************************** */
#include "PikaStdData.h"
#include "TinyObj.h"
#include <stdio.h>
#include <stdlib.h>
#include "BaseObj.h"
void PikaStdData_ByteArrayMethod(PikaObj *self, Args *args){
Arg* res = PikaStdData_ByteArray(self);
method_returnArg(args, res);
}
void PikaStdData_DictMethod(PikaObj *self, Args *args){
Arg* res = PikaStdData_Dict(self);
method_returnArg(args, res);
}
void PikaStdData_ListMethod(PikaObj *self, Args *args){
Arg* res = PikaStdData_List(self);
method_returnArg(args, res);
}
void PikaStdData_StringMethod(PikaObj *self, Args *args){
Arg* res = PikaStdData_String(self);
method_returnArg(args, res);
}
PikaObj *New_PikaStdData(Args *args){
PikaObj *self = New_TinyObj(args);
class_defineConstructor(self, "ByteArray()->any", PikaStdData_ByteArrayMethod);
class_defineConstructor(self, "Dict()->any", PikaStdData_DictMethod);
class_defineConstructor(self, "List()->any", PikaStdData_ListMethod);
class_defineConstructor(self, "String()->any", PikaStdData_StringMethod);
return self;
}