You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Static library containing macros for throwing and handling exceptions in C, in a ``try``/``catch``/``finally``-like fashion, along with a basic implementation of a stack.
4
4
I tried my best to reproduce the C# exception handling syntax, but it cannot be perfect due to the limitations of macros.
@@ -7,6 +7,22 @@ I tried my best to reproduce the C# exception handling syntax, but it cannot be
7
7
8
8
See the [example](https://github.com/5cover/C-exCeptions/blob/main/example/main.c).
9
9
10
+
## Reserved identifiers
11
+
> **Warning** The reserved identifiers are implementation-defined. Client code should not use them.
12
+
13
+
Name | Type | Scope | Defined in
14
+
| - | - | - | -
15
+
``_g_tryCatchEnvs`` | Variable | Global | [exceptions.h](https://github.com/5cover/C-exCeptions/blob/main/src/exceptions.h)
16
+
``_setThrownException`` | Function | Global | [exceptions.h](https://github.com/5cover/C-exCeptions/blob/main/src/exceptions.h)
17
+
``_freeThrownException`` | Function | Global | [exceptions.h](https://github.com/5cover/C-exCeptions/blob/main/src/exceptions.h)
18
+
``_thrownException`` | Function | Global | [exceptions.h](https://github.com/5cover/C-exCeptions/blob/main/src/exceptions.h)
19
+
``_abortUnhandledException`` | Function | Global | [exceptions.h](https://github.com/5cover/C-exCeptions/blob/main/src/exceptions.h)
20
+
``_handled`` | Variable | Local | [try](https://github.com/5cover/C-exCeptions/blob/main/src/exceptions.h#41)
21
+
``_finallyPending`` | Variable | Local | [try](https://github.com/5cover/C-exCeptions/blob/main/src/exceptions.h#41)
22
+
``_setjmpResult`` | Variable | Local | [try](https://github.com/5cover/C-exCeptions/blob/main/src/exceptions.h#41)
23
+
``_finally`` | Label | Local | [finally](https://github.com/5cover/C-exCeptions/blob/main/src/exceptions.h#L103)
24
+
25
+
10
26
## Contributing
11
27
12
28
I'm not a very experienced C programmer. There's probably a million ways to break this. Any feedback will be greatly appreciated.
0 commit comments