mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
994bb3bdc5
add PikaUI test test PikauI_core passed save host_obj on methodArg support save host_obj for method
12 lines
283 B
C
12 lines
283 B
C
#include "weakref.h"
|
|
|
|
Arg* weakref_ref(PikaObj* self, Arg* obj) {
|
|
if (argType_isObject(arg_getType(obj))) {
|
|
Arg* ret = arg_copy(obj);
|
|
obj_refcntDec((PikaObj*)arg_getPtr(ret));
|
|
arg_setIsWeakRef(ret, PIKA_TRUE);
|
|
return ret;
|
|
}
|
|
return NULL;
|
|
}
|