diff options
author | Joshua Haberman <jhaberman@gmail.com> | 2015-01-14 13:51:37 -0800 |
---|---|---|
committer | Joshua Haberman <jhaberman@gmail.com> | 2015-01-14 13:51:37 -0800 |
commit | 1988a660f4b3093c61f7cbae3d1b21f609b4bd0b (patch) | |
tree | fcbab052ead901543a135a15e25fee36189b15bd /upb/table.int.h | |
parent | bebdc009b484295f06185b5bab884a3754bbbacd (diff) | |
parent | 87a18f37743efde6f66f77209c98400cdec67cbe (diff) |
Merge pull request #11 from cfallin/oneofs
Support oneof defs in upb.
Diffstat (limited to 'upb/table.int.h')
-rw-r--r-- | upb/table.int.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/upb/table.int.h b/upb/table.int.h index e851e90..e27fb01 100644 --- a/upb/table.int.h +++ b/upb/table.int.h @@ -207,6 +207,9 @@ typedef struct { #define UPB_STRTABLE_INIT(count, mask, ctype, size_lg2, entries) \ {{count, mask, ctype, size_lg2, entries}} +#define UPB_EMPTY_STRTABLE_INIT(ctype) \ + UPB_STRTABLE_INIT(0, 0, ctype, 0, NULL) + typedef struct { upb_table t; // For entries that don't fit in the array part. const _upb_value *array; // Array part of the table. See const note above. |