summaryrefslogtreecommitdiff
path: root/upb/port_undef.inc
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 /upb/port_undef.inc
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 'upb/port_undef.inc')
-rw-r--r--upb/port_undef.inc14
1 files changed, 14 insertions, 0 deletions
diff --git a/upb/port_undef.inc b/upb/port_undef.inc
index 7db97ca..bfd2a08 100644
--- a/upb/port_undef.inc
+++ b/upb/port_undef.inc
@@ -1,5 +1,19 @@
+/* See port_def.inc. This should #undef all macros #defined there. */
#undef UPB_SIZE
#undef UPB_FIELD_AT
#undef UPB_READ_ONEOF
#undef UPB_WRITE_ONEOF
+#undef UPB_INLINE
+#undef UPB_FORCEINLINE
+#undef UPB_NOINLINE
+#undef UPB_NORETURN
+#undef UPB_MAX
+#undef UPB_MIN
+#undef UPB_UNUSED
+#undef UPB_ASSERT
+#undef UPB_ASSERT_DEBUGVAR
+#undef UPB_UNREACHABLE
+#undef _upb_snprintf
+#undef _upb_vsnprintf
+#undef _upb_va_copy
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback