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)
def check_cpp_token(t): lib.cw__test_helpers_check_cpp_token(UserTokenHelper.fromPy(t)) CPyException.toPyCheckAndRaise(ffi.NULL)
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
def create_cpp_token(): _ret_c = lib.cw__test_helpers_create_cpp_token() CPyException.toPyCheckAndRaise(_ret_c) _ret = UserTokenHelper.toPy(_ret_c) assert _ret is not None return _ret
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)