add pks_getVersion

This commit is contained in:
dreamcmi 2022-08-21 14:31:28 +08:00
parent e8d66a429f
commit fc859838e6
2 changed files with 6 additions and 0 deletions

View File

@ -1181,6 +1181,11 @@ void pks_printVersion(void) {
PIKA_VERSION_MINOR, PIKA_VERSION_MICRO, PIKA_EDIT_TIME);
}
void pks_getVersion(char *buff)
{
__platform_sprintf(buff, "%d.%d.%d", PIKA_VERSION_MAJOR, PIKA_VERSION_MINOR, PIKA_VERSION_MICRO);
}
void* obj_getStruct(PikaObj* self, char* name) {
return args_getStruct(self->list, name);
}

View File

@ -286,6 +286,7 @@ PikaObj* Obj_linkLibraryFile(PikaObj* self, char* input_file_name);
NewFun obj_getClass(PikaObj* obj);
void pks_printVersion(void);
void pks_getVersion(char *buff);
void* obj_getStruct(PikaObj* self, char* name);
#define obj_refcntDec(self) (((self)->refcnt--))