summaryrefslogtreecommitdiff
path: root/upb/bindings
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/bindings
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/bindings')
-rw-r--r--upb/bindings/lua/msg.c2
-rw-r--r--upb/bindings/stdc++/string.h4
2 files changed, 6 insertions, 0 deletions
diff --git a/upb/bindings/lua/msg.c b/upb/bindings/lua/msg.c
index 1e5e47c..4b8a854 100644
--- a/upb/bindings/lua/msg.c
+++ b/upb/bindings/lua/msg.c
@@ -14,6 +14,8 @@
#include "upb/legacy_msg_reflection.h"
#include "upb/msg.h"
+#include "upb/port_def.inc"
+
/*
* Message/Array/Map objects can be constructed in one of two ways:
*
diff --git a/upb/bindings/stdc++/string.h b/upb/bindings/stdc++/string.h
index 55b44cf..c346548 100644
--- a/upb/bindings/stdc++/string.h
+++ b/upb/bindings/stdc++/string.h
@@ -4,6 +4,8 @@
#include "upb/sink.h"
+#include "upb/port_def.inc"
+
namespace upb {
template <class T>
@@ -62,4 +64,6 @@ class StringSink {
} // namespace upb
+#include "upb/port_undef.inc"
+
#endif // UPB_STDCPP_H_
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback