mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
add pikaDict_isArgExist API
This commit is contained in:
parent
2ad9caacc9
commit
890d553f14
@ -138,12 +138,14 @@ struct PikaDict {
|
||||
/* dict api */
|
||||
PikaDict* New_pikaDict(void);
|
||||
|
||||
static inline PIKA_RES pikaDict_setInt(PikaDict* self, char* name, int64_t val) {
|
||||
static inline PIKA_RES pikaDict_setInt(PikaDict* self,
|
||||
char* name,
|
||||
int64_t val) {
|
||||
return args_setInt((&((self)->super)), (name), (val));
|
||||
}
|
||||
static inline PIKA_RES pikaDict_setFloat(PikaDict* self,
|
||||
char* name,
|
||||
pika_float val) {
|
||||
char* name,
|
||||
pika_float val) {
|
||||
return args_setFloat((&((self)->super)), (name), (val));
|
||||
}
|
||||
static inline PIKA_RES pikaDict_setStr(PikaDict* self, char* name, char* val) {
|
||||
@ -162,9 +164,9 @@ static inline PIKA_RES pikaDict_removeArg(PikaDict* self, Arg* val) {
|
||||
}
|
||||
|
||||
static inline PIKA_RES pikaDict_setBytes(PikaDict* self,
|
||||
char* name,
|
||||
uint8_t* val,
|
||||
size_t size) {
|
||||
char* name,
|
||||
uint8_t* val,
|
||||
size_t size) {
|
||||
return args_setBytes((&((self)->super)), (name), (val), (size));
|
||||
}
|
||||
|
||||
@ -188,6 +190,10 @@ static inline Arg* pikaDict_getArg(PikaDict* self, char* name) {
|
||||
return args_getArg((&((self)->super)), (name));
|
||||
}
|
||||
|
||||
static inline int32_t pikaDict_isArgExist(PikaDict* self, char* name) {
|
||||
return args_isArgExist((&((self)->super)), (name));
|
||||
}
|
||||
|
||||
static inline uint8_t* pikaDict_getBytes(PikaDict* self, char* name) {
|
||||
return args_getBytes((&((self)->super)), (name));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user