summaryrefslogtreecommitdiff
path: root/tests/test_util.h
diff options
context:
space:
mode:
authorJoshua Haberman <jhaberman@gmail.com>2019-03-27 15:32:05 -0700
committerGitHub <noreply@github.com>2019-03-27 15:32:05 -0700
commitcf35baa1ad70f0dca734f93bcc2b54d8d059bcdd (patch)
tree3c9881fcceaba1dbb5f04fe01ddc5f2dc5c647d1 /tests/test_util.h
parent928ef7f2c02f18d9945dd750884dffbdebef1b98 (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_util.h')
-rw-r--r--tests/test_util.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/test_util.h b/tests/test_util.h
index 680673d..4854100 100644
--- a/tests/test_util.h
+++ b/tests/test_util.h
@@ -10,6 +10,8 @@
#include "tests/upb_test.h"
#include "upb/sink.h"
+#include "upb/port_def.inc"
+
#ifdef __cplusplus
upb_bufhandle global_handle;
@@ -223,4 +225,6 @@ error:
return NULL;
}
-#endif
+#include "upb/port_undef.inc"
+
+#endif /* UPB_TEST_UTIL_H_ */
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback