Example #1
0
 def check_token_type(t, type):
     with CPyString.fromPy(type) as pys_type:
         lib.cw__test_helpers_check_token_type(UserTokenHelper.fromPy(t), pys_type.release_djinni_string())
         CPyException.toPyCheckAndRaise(ffi.NULL)
Example #2
0
 def cpp_token_id(t):
     _ret_c = lib.cw__test_helpers_cpp_token_id(UserTokenHelper.fromPy(t))
     CPyException.toPyCheckAndRaise(_ret_c)
     _ret = CPyPrimitive.toPy(_ret_c)
     assert _ret is not None
     return _ret
Example #3
0
 def check_cpp_token(t):
     lib.cw__test_helpers_check_cpp_token(UserTokenHelper.fromPy(t))
     CPyException.toPyCheckAndRaise(ffi.NULL)
Example #4
0
 def check_token_type(t, type):
     with CPyString.fromPy(type) as pys_type:
         lib.cw__test_helpers_check_token_type(
             UserTokenHelper.fromPy(t), pys_type.release_djinni_string())
         CPyException.toPyCheckAndRaise(ffi.NULL)
Example #5
0
 def cpp_token_id(t):
     _ret_c = lib.cw__test_helpers_cpp_token_id(UserTokenHelper.fromPy(t))
     CPyException.toPyCheckAndRaise(_ret_c)
     _ret = CPyPrimitive.toPy(_ret_c)
     assert _ret is not None
     return _ret
Example #6
0
 def check_cpp_token(t):
     lib.cw__test_helpers_check_cpp_token(UserTokenHelper.fromPy(t))
     CPyException.toPyCheckAndRaise(ffi.NULL)