Nim/tests/exception
Andreas Rumpf c3344862b0
--exception:goto switch for deterministic exception handling (#12977)
This implements "deterministic" exception handling for Nim based on goto instead of setjmp. This means raising an exception is much cheaper than in C++'s table based implementations. Supports hard realtime systems. Default for --gc:arc and the C target because it's generally a good idea and arc is all about deterministic behavior.

Note: This implies that fatal runtime traps are not catchable anymore! This needs to be documented.
2020-01-01 10:01:49 +01:00
..
t9657.nim fixes #11618 (#11969) 2019-08-17 21:19:57 +02:00
tcontinuexc.nim require errormsg to be specified before file. 2018-12-11 21:23:21 +01:00
tcpp_imported_exc.nim Cpp codegen: handling of imported exceptions. Fixes #3571 (#7360) 2018-04-10 12:14:59 +02:00
tdefer1.nim Fix defer not not-working at top level (#10191) 2019-01-07 00:51:17 +01:00
tdont_overwrite_typename.nim fixes more nil handling regressions 2018-08-13 17:27:44 +02:00
testindexerroroutput.nims revive #10228 (fix #9880) (#10610) 2019-02-13 23:30:14 +01:00
texcas.nim Allow only single infix as in except branches. Fixes #7115 (#7132) 2018-03-08 10:56:32 +01:00
texceptionbreak.nim require errormsg to be specified before file. 2018-12-11 21:23:21 +01:00
texceptions.nim Rework exception handling in the VM (#10544) 2019-02-08 11:57:47 +01:00
texcpt1.nim Fixes 2018-06-12 00:28:09 +01:00
texcsub.nim require errormsg to be specified before file. 2018-12-11 21:23:21 +01:00
tfinally.nim require errormsg to be specified before file. 2018-12-11 21:23:21 +01:00
tfinally2.nim require errormsg to be specified before file. 2018-12-11 21:23:21 +01:00
tfinally3.nim require errormsg to be specified before file. 2018-12-11 21:23:21 +01:00
tfinally4.nim --exception:goto switch for deterministic exception handling (#12977) 2020-01-01 10:01:49 +01:00
tindexerrorformatbounds.nim revive #10228 (fix #9880) (#10610) 2019-02-13 23:30:14 +01:00
tnestedreturn.nim require errormsg to be specified before file. 2018-12-11 21:23:21 +01:00
tnestedreturn2.nim require errormsg to be specified before file. 2018-12-11 21:23:21 +01:00
treraise.nim require errormsg to be specified before file. 2018-12-11 21:23:21 +01:00
tshow_real_exception_name.nim fixes #11309 (#11310) 2019-05-23 19:32:44 +02:00
tunhandledexc.nim require errormsg to be specified before file. 2018-12-11 21:23:21 +01:00
twrongexc.nim require errormsg to be specified before file. 2018-12-11 21:23:21 +01:00