-
Notifications
You must be signed in to change notification settings - Fork 15.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
4 changed files
with
264 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#include "google/protobuf/generated_message_table.h" | ||
|
||
// Must be included after other headers. | ||
#include "google/protobuf/port_def.inc" | ||
|
||
namespace google { | ||
namespace protobuf { | ||
namespace internal { | ||
namespace v2 { | ||
|
||
// Messages without any fields can just point to this special table instead of | ||
// creating their own. | ||
extern constexpr MessageTable<0> kEmptyMessageTable = { | ||
{/*has_bits_offset*/ 0, /*extension_offset*/ 0, /*field_count*/ 0, | ||
/*oneof_field_count*/ 0, /*split_field_count*/ 0, /*oneof_case_count*/ 0, | ||
/*aux_offset*/ 0}}; | ||
|
||
} // namespace v2 | ||
} // namespace internal | ||
} // namespace protobuf | ||
} // namespace google | ||
|
||
#include "google/protobuf/port_undef.inc" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters