diff options
author | Joshua Haberman <joshua@reverberate.org> | 2009-06-15 16:07:08 -0700 |
---|---|---|
committer | Joshua Haberman <joshua@reverberate.org> | 2009-06-15 16:07:08 -0700 |
commit | bc717d84023eadd0fe94668f4034e4a09e4be9c9 (patch) | |
tree | 096101da08c88808df5e8431ded8f47fde0a47a3 /upb_parse.h | |
parent | ccca4d71360776f5589312525b2397c84ad0096d (diff) |
Implement inlining that works with both C99 and all versions of GCC.
Diffstat (limited to 'upb_parse.h')
-rw-r--r-- | upb_parse.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/upb_parse.h b/upb_parse.h index 829e97c..068d522 100644 --- a/upb_parse.h +++ b/upb_parse.h @@ -27,7 +27,7 @@ upb_status_t parse_tag(uint8_t **buf, struct upb_tag *tag); extern upb_wire_type_t upb_expected_wire_types[]; /* Returns true if wt is the correct on-the-wire type for ft. */ -inline bool upb_check_type(upb_wire_type_t wt, upb_field_type_t ft) { +INLINE bool upb_check_type(upb_wire_type_t wt, upb_field_type_t ft) { return upb_expected_wire_types[ft] == wt; } |