diff options
author | Joshua Haberman <jhaberman@gmail.com> | 2019-03-27 15:32:05 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-27 15:32:05 -0700 |
commit | cf35baa1ad70f0dca734f93bcc2b54d8d059bcdd (patch) | |
tree | 3c9881fcceaba1dbb5f04fe01ddc5f2dc5c647d1 /tests/test_cpp.cc | |
parent | 928ef7f2c02f18d9945dd750884dffbdebef1b98 (diff) |
Moved macros from upb.h to port_def.inc to avoid leaking them to users. (#160)
* Use port_def.inc to prevent macros from leaking to users.
* Added helpful comments to port_def.inc/port_undef.inc.
Diffstat (limited to 'tests/test_cpp.cc')
-rw-r--r-- | tests/test_cpp.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_cpp.cc b/tests/test_cpp.cc index ed8e9c4..8feb6e2 100644 --- a/tests/test_cpp.cc +++ b/tests/test_cpp.cc @@ -19,6 +19,8 @@ #include "upb/upb.h" #include "upb_test.h" +#include "upb/port_def.inc" + template <class T> void AssertInsert(T* const container, const typename T::value_type& val) { bool inserted = container->insert(val).second; |