Skip to content

Commit

Permalink
Merge pull request #499 from biojppm/fix/470_wundef
Browse files Browse the repository at this point in the history
  • Loading branch information
biojppm authored Feb 14, 2025
2 parents ad4ff9d + 5db61e2 commit 03fdd42
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions changelog/current.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
- [PR#485](https://github.com/biojppm/rapidyaml/pull/485): improve the CI workflows (thanks to @ingydotnet):
- amazing code reuse and organization, thanks to the use of YamlScript to generate the final workflows
- all optimization levels are now covered for gcc, clang and Visual Studio.
- [PR#499](https://github.com/biojppm/rapidyaml/pull/499): fix warnings with `-Wundef`.


## Thanks
Expand Down
2 changes: 1 addition & 1 deletion src/c4/yml/event_handler_tree.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ struct EventHandlerTree : public EventHandlerStack<EventHandlerTree, EventHandle
size_t m_num_directives;
bool m_yaml_directive;

#if RYML_DBG
#ifdef RYML_DBG
#define _enable_(bits) _enable__<bits>(); _c4dbgpf("node[{}]: enable {}", m_curr->node_id, #bits)
#define _disable_(bits) _disable__<bits>(); _c4dbgpf("node[{}]: disable {}", m_curr->node_id, #bits)
#else
Expand Down
6 changes: 5 additions & 1 deletion test/test_suite/test_suite_common.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@
#include "test_lib/test_case.hpp"
#include <gtest/gtest.h>

#define RYML_NFO (0 || RYML_DBG)
#if (0 || defined(RYML_DBG))
#define RYML_NFO (1)
#else
#define RYML_NFO (0)
#endif

#if RYML_NFO
#define _nfo_print_tree(title, tree) do { c4::log("{}:{}: " title ":", __FILE__, __LINE__); print_tree(tree); c4::yml::emit_yaml(tree, stdout); fflush(stdout); } while(0)
Expand Down

0 comments on commit 03fdd42

Please sign in to comment.