Home
last modified time | relevance | path

Searched refs:exc (Results 1 – 25 of 39) sorted by relevance

12

/AliOS-Things-master/components/py_engine/engine/lib/libm/
A Dwf_lgamma.c41 struct exception exc;
51 exc.name = "lgammaf";
52 exc.err = 0;
53 exc.arg1 = exc.arg2 = (double)x;
55 exc.retval = HUGE;
57 exc.retval = HUGE_VAL;
60 exc.type = SING;
63 else if (!matherr(&exc)) {
69 exc.type = OVERFLOW;
76 if (exc.err != 0)
[all …]
/AliOS-Things-master/components/py_engine/tests/esp32/
A Dcheck_err_str.py25 exc = "FAILED TO RAISE" variable
30 exc = e variable
32 print("exc:", exc) # exc empty due to no memory
36 exc = "FAILED TO RAISE" variable
41 exc = e variable
43 print(exc)
/AliOS-Things-master/components/py_engine/engine/py/
A Dparsenum.c39 STATIC NORETURN void raise_exc(mp_obj_t exc, mp_lexer_t *lex) { in raise_exc() argument
43 ((mp_obj_base_t *)MP_OBJ_TO_PTR(exc))->type = &mp_type_SyntaxError; in raise_exc()
44 mp_obj_exception_add_traceback(exc, lex->source_name, lex->tok_line, MP_QSTRnull); in raise_exc()
46 nlr_raise(exc); in raise_exc()
149 mp_obj_t exc = mp_obj_new_exception_msg(&mp_type_ValueError, in mp_parse_num_integer() local
151 raise_exc(exc, lex); in mp_parse_num_integer()
153 mp_obj_t exc = mp_obj_new_exception_msg_varg(&mp_type_ValueError, in mp_parse_num_integer()
155 raise_exc(exc, lex); in mp_parse_num_integer()
162 mp_obj_t exc = mp_obj_new_exception_arg1(&mp_type_ValueError, in mp_parse_num_integer()
164 raise_exc(exc, lex); in mp_parse_num_integer()
A Dobjexcept.c460 mp_obj_t exc = mp_obj_new_exception_msg_vlist(exc_type, fmt, args); in mp_obj_new_exception_msg_varg() local
462 return exc; in mp_obj_new_exception_msg_varg()
555 bool mp_obj_exception_match(mp_obj_t exc, mp_const_obj_t exc_type) { in mp_obj_exception_match() argument
557 if (mp_obj_is_exception_instance(exc)) { in mp_obj_exception_match()
558 exc = MP_OBJ_FROM_PTR(mp_obj_get_type(exc)); in mp_obj_exception_match()
560 return mp_obj_is_subclass_fast(exc, exc_type); in mp_obj_exception_match()
A Dscheduler.c33 void MICROPY_WRAP_MP_SCHED_EXCEPTION(mp_sched_exception)(mp_obj_t exc) { in MICROPY_WRAP_MP_SCHED_EXCEPTION()
34 MP_STATE_MAIN_THREAD(mp_pending_exception) = exc; in MICROPY_WRAP_MP_SCHED_EXCEPTION()
A Dmodthread.c201 mp_obj_base_t *exc = (mp_obj_base_t *)nlr.ret_val; in thread_entry() local
202 … if (mp_obj_is_subclass_fast(MP_OBJ_FROM_PTR(exc->type), MP_OBJ_FROM_PTR(&mp_type_SystemExit))) { in thread_entry()
209 mp_obj_print_exception(MICROPY_ERROR_PRINTER, MP_OBJ_FROM_PTR(exc)); in thread_entry()
A Dparse.c720 mp_obj_t exc = mp_obj_new_exception_msg(&mp_type_SyntaxError, in fold_constants() local
722 mp_obj_exception_add_traceback(exc, parser->lexer->source_name, in fold_constants()
724 nlr_raise(exc); in fold_constants()
1148 mp_obj_t exc; in mp_parse() local
1150 exc = mp_obj_new_exception_msg(&mp_type_IndentationError, in mp_parse()
1153 exc = mp_obj_new_exception_msg(&mp_type_IndentationError, in mp_parse()
1157 exc = mp_obj_new_exception_msg(&mp_type_SyntaxError, in mp_parse()
1160 exc = mp_obj_new_exception_msg(&mp_type_SyntaxError, in mp_parse()
1164 exc = mp_obj_new_exception_msg(&mp_type_SyntaxError, in mp_parse()
1169 mp_obj_exception_add_traceback(exc, lex->source_name, lex->tok_line, MP_QSTRnull); in mp_parse()
[all …]
A Dobjgenerator.c287 mp_obj_t exc = args[1]; in gen_instance_throw() local
289 exc = args[2]; in gen_instance_throw()
292 return gen_resume_and_raise(args[0], mp_const_none, exc, true); in gen_instance_throw()
A Dobj.c124 void mp_obj_print_exception(const mp_print_t *print, mp_obj_t exc) { in mp_obj_print_exception() argument
125 if (mp_obj_is_exception_instance(exc)) { in mp_obj_print_exception()
127 mp_obj_exception_get_traceback(exc, &n, &values); in mp_obj_print_exception()
147 mp_obj_print_helper(print, exc, PRINT_EXC); in mp_obj_print_exception()
/AliOS-Things-master/components/py_engine/engine/extmod/uasyncio/
A Dcore.py37 self.exc = StopIteration()
48 self.exc.__traceback__ = None
49 raise self.exc
174 exc = t.data
175 if not exc:
183 t.coro.throw(exc)
215 _exc_context["exception"] = exc
A Dstream.py19 async def __aexit__(self, exc_type, exc, tb): argument
100 async def __aexit__(self, exc_type, exc, tb): argument
A Dlock.py52 async def __aexit__(self, exc_type, exc, tb): argument
/AliOS-Things-master/components/py_engine/tests/micropython/
A Dextreme_exc.py148 exc = Exception("my exception")
150 raise exc
159 h(exc)
A Demg_exc.py24 exc = er
29 usys.print_exception(exc, buf)
/AliOS-Things-master/components/py_engine/tests/extmod/
A Duasyncio_task_done.py13 async def task(t, exc=None): argument
17 if exc:
18 raise exc
/AliOS-Things-master/components/py_engine/tests/basics/
A Dop_error_intbig.py3 def test_exc(code, exc): argument
7 except exc:
A Dasync_with_break.py7 async def __aexit__(self, exc_type, exc, tb): argument
8 print('exit', exc_type, exc)
A Dasync_with_return.py7 async def __aexit__(self, exc_type, exc, tb): argument
8 print('exit', exc_type, exc)
A Dasync_with.py7 async def __aexit__(self, exc_type, exc, tb): argument
8 print('exit', exc_type, exc)
A Dasync_with2.py25 async def __aexit__(self, exc_type, exc, tb): argument
26 print('exit', exc_type, exc)
/AliOS-Things-master/components/py_engine/engine/shared/upytesthelper/
A Dupytesthelper.c108 mp_obj_t exc = (mp_obj_t)nlr.ret_val; in upytest_execute_test() local
109 if (mp_obj_is_subclass_fast(mp_obj_get_type(exc), &mp_type_SystemExit)) { in upytest_execute_test()
116 mp_obj_print_exception(&mp_plat_print, exc); in upytest_execute_test()
/AliOS-Things-master/components/freetype/src/truetype/
A Dttinterp.h31 #define EXEC_OP_ TT_ExecContext exc,
32 #define EXEC_OP TT_ExecContext exc
33 #define EXEC_ARG_ exc,
34 #define EXEC_ARG exc
/AliOS-Things-master/components/py_engine/engine/extmod/
A Duos_dupterm.c40 void mp_uos_deactivate(size_t dupterm_idx, const char *msg, mp_obj_t exc) { in mp_uos_deactivate() argument
44 if (exc != MP_OBJ_NULL) { in mp_uos_deactivate()
45 mp_obj_print_exception(&mp_plat_print, exc); in mp_uos_deactivate()
A Dmisc.h42 void mp_uos_deactivate(size_t dupterm_idx, const char *msg, mp_obj_t exc);
/AliOS-Things-master/components/py_engine/engine/tools/
A Dupip.py187 def fatal(msg, exc=None): argument
189 if exc and debug:
190 raise exc

Completed in 26 milliseconds

12