Example #1
0
 def opt_i64_id(od):
     with CPyBoxedI64.fromPyOpt(od) as pyopt_od:
         _ret_c = lib.cw__foo_static_opt_i64_id(
             pyopt_od.release_djinni_boxed())
         CPyException.toPyCheckAndRaise(_ret_c)
         _ret = CPyBoxedI64.toPyOpt(_ret_c)
         return _ret
 def get_assorted_primitives_f12(cself):
     try:
         with CPyBoxedI64.fromPyOpt(CPyRecord.toPy(None, cself).o_sixtyfour) as py_obj:
             return py_obj.release_djinni_boxed()
     except Exception as _djinni_py_e:
         CPyException.setExceptionFromPy(_djinni_py_e)
         return ffi.NULL
Example #3
0
 def opt_i64_id(od):
     with CPyBoxedI64.fromPyOpt(od) as pyopt_od:
         _ret_c = lib.cw__foo_static_opt_i64_id(pyopt_od.release_djinni_boxed())
         CPyException.toPyCheckAndRaise(_ret_c)
         _ret = CPyBoxedI64.toPyOpt(_ret_c)
         return _ret