mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
add pks_getVersion
This commit is contained in:
parent
e8d66a429f
commit
fc859838e6
@ -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);
|
||||
}
|
||||
|
@ -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--))
|
||||
|
Loading…
x
Reference in New Issue
Block a user