File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -250,7 +250,7 @@ git clone https://github.com/philip82148/cpp-dump
250
250
cd cpp-dump
251
251
cmake -S . -B build # No configuration is needed because the library is header-only.
252
252
sudo cmake --install build
253
- # (The cpp-dump folder can be removed after this.)
253
+ # (The ' cpp-dump' folder can be removed after this.)
254
254
```
255
255
256
256
Then
287
287
288
288
## Configuration (as needed)
289
289
290
- If you want to customize the library, use the ` CPP_DUMP_SET_OPTION_GLOBAL() ` macro :
290
+ If you want to customize the library, you can write the configuration code as follows :
291
291
292
292
` custom-cpp-dump.hpp `
293
293
@@ -296,6 +296,9 @@ If you want to customize the library, use the `CPP_DUMP_SET_OPTION_GLOBAL()` mac
296
296
#include "path/to/cpp-dump/cpp-dump.hpp"
297
297
namespace cp = cpp_dump;
298
298
CPP_DUMP_SET_OPTION_GLOBAL(max_line_width, 100);
299
+
300
+ // To ensure proper instantiation of templates, it is recommended to include these in header files.
301
+ // (These need to be included in at least one translation unit where cpp_dump(...) prints the type.)
299
302
// CPP_DUMP_DEFINE_EXPORT_ENUM(...);
300
303
// CPP_DUMP_DEFINE_EXPORT_OBJECT(...);
301
304
// CPP_DUMP_DEFINE_EXPORT_OBJECT_GENERIC(...);
You can’t perform that action at this time.
0 commit comments