Skip to content

Commit fc6cfef

Browse files
committed
2 parents b19b827 + 6dfa4e1 commit fc6cfef

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

README.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# C-exCeptions
1+
# C-exCeption
22

33
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.
44
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
77

88
See the [example](https://github.com/5cover/C-exCeptions/blob/main/example/main.c).
99

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+
1026
## Contributing
1127

1228
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

Comments
 (0)