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/conformance_upb.c | |
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/conformance_upb.c')
-rw-r--r-- | tests/conformance_upb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/conformance_upb.c b/tests/conformance_upb.c index a0526d7..782346f 100644 --- a/tests/conformance_upb.c +++ b/tests/conformance_upb.c @@ -50,6 +50,8 @@ void DoTest( const conformance_ConformanceRequest* request, conformance_ConformanceResponse *response, upb_arena *arena) { + protobuf_test_messages_proto3_TestAllTypesProto3 *test_message; + if (!strview_eql(conformance_ConformanceRequest_message_type(request), proto3_msg)) { static const char msg[] = "Only proto3 for now."; @@ -58,8 +60,6 @@ void DoTest( return; } - protobuf_test_messages_proto3_TestAllTypesProto3 *test_message; - switch (conformance_ConformanceRequest_payload_case(request)) { case conformance_ConformanceRequest_payload_protobuf_payload: { upb_strview payload = conformance_ConformanceRequest_protobuf_payload(request); |