Skip to content

Commit 63aba56

Browse files
committed
Add note about macro headers for modules
1 parent ef14b3b commit 63aba56

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1513,6 +1513,10 @@ target_link_libraries(main PRIVATE cpptrace::cpptrace)
15131513
Cpptrace supports C++20 modules: `import cpptrace;`. You'll need a modern toolchain in order to use C++20 modules (i.e.
15141514
relatively new compilers, cmake, etc).
15151515

1516+
For features involving macros you will have to `#include` headers with the macro definitions:
1517+
- `<cpptrace/exceptions_macros.hpp>`: `CPPTRACE_WRAP` and `CPPTRACE_WRAP_BLOCK`
1518+
- `<cpptrace/from_current_macros.hpp>`: `CPPTRACE_TRY`, `CPPTRACE_CATCH`, etc.
1519+
15161520
# Platform Logistics
15171521

15181522
Windows and macOS require a little extra work to get everything in the right place.

0 commit comments

Comments
 (0)