Пример #1
0
def _DECREF(obj):
    if obj != llpy_null:
        refcnt_p = gep(obj, (0, li32(0)))
        refcnt = load(refcnt_p)
        if refcnt > 1:
            refcnt_p[0] -= 1
        else:
            Py_DecRef(obj)
Пример #2
0
def __INCREF(obj):
    refcnt_p = gep(obj, (0, li32(0)))
    refcnt_p[0] += 1
Пример #3
0
def _Py_GetType(arg):
    return load(gep(arg, (0, li32(1))))