Skip to content

Commit 8a3b024

Browse files
committed
Renamed examples, fixed minor issues in build scripts
1 parent cd4b96c commit 8a3b024

13 files changed

+59
-653
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ https://boostorg.github.io/leaf/
99
## Features
1010

1111
* Portable single-header format, no dependencies.
12-
* Tiny code size when configured for embedded development.
12+
* Tiny code size, configurable for embedded development.
1313
* No dynamic memory allocations, even with very large payloads.
1414
* Deterministic unbiased efficiency on the "happy" path and the "sad" path.
1515
* Error objects are handled in constant time, independent of call stack depth.

doc/leaf.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1365,7 +1365,7 @@ return leaf::try_catch(
13651365
[.text-right]
13661366
<<try_catch>> | <<result>>
13671367

1368-
NOTE: Follow this link to see a complete example program: https://github.com/boostorg/leaf/blob/master/example/try_capture_all_eh.cpp?ts=4[try_capture_all_eh.cpp].
1368+
NOTE: Follow this link to see a complete example program: https://github.com/boostorg/leaf/blob/master/example/try_capture_all_exceptions.cpp?ts=4[try_capture_all_exceptions.cpp].
13691369

13701370
'''
13711371

@@ -1776,7 +1776,7 @@ int main() noexcept
17761776

17771777
NOTE: Follow this link to see the complete program: https://github.com/boostorg/leaf/blob/master/example/lua_callback_result.cpp?ts=4[lua_callback_result.cpp].
17781778

1779-
TIP: When using Lua with {CPP}, we need to protect the Lua interpreter from exceptions that may be thrown from {CPP} functions installed as `lua_CFunction` callbacks. Here is the program from this section rewritten to use a {CPP} exception (instead of `leaf::result`) to safely communicate errors out of the `do_work` function: https://github.com/boostorg/leaf/blob/master/example/lua_callback_eh.cpp?ts=4[lua_callback_eh.cpp].
1779+
TIP: When using Lua with {CPP}, we need to protect the Lua interpreter from exceptions that may be thrown from {CPP} functions installed as `lua_CFunction` callbacks. Here is the program from this section rewritten to use a {CPP} exception (instead of `leaf::result`) to safely communicate errors out of the `do_work` function: https://github.com/boostorg/leaf/blob/master/example/lua_callback_exceptions.cpp?ts=4[lua_callback_exceptions.cpp].
17801780

17811781
''''
17821782

0 commit comments

Comments
 (0)