update pikatsddata_String.c

This commit is contained in:
lyon1998 2022-04-04 16:35:56 +08:00
parent 2fca76daa0
commit 105becd7de

View File

@ -9,6 +9,10 @@ void PikaStdData_String_set(PikaObj* self, char* s) {
obj_setStr(self, "str", s);
}
void PikaStdData_String___init__(PikaObj* self, char* s) {
PikaStdData_String_set(self, s);
}
char* PikaStdData_String_get(PikaObj* self) {
return obj_getStr(self, "str");
}