diff options
author | Joshua Haberman <joshua@reverberate.org> | 2011-01-10 21:01:07 -0800 |
---|---|---|
committer | Joshua Haberman <joshua@reverberate.org> | 2011-01-10 21:01:07 -0800 |
commit | e9b9bbf216fdcbc86114b074dba6d0f51e4a438e (patch) | |
tree | 7c24b044d363138fdd132eebe75af48dbf94fc33 /core/upb.h | |
parent | bcc688a303439c758a47da9f0eb1c064ece6ce09 (diff) |
Add INLINE to a few identifiers.
Diffstat (limited to 'core/upb.h')
-rw-r--r-- | core/upb.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -173,11 +173,11 @@ typedef struct { #endif #define UPB_VALUE_ACCESSORS(name, membername, ctype, proto_type) \ - ctype upb_value_get ## name(upb_value val) { \ + INLINE ctype upb_value_get ## name(upb_value val) { \ assert(val.type == proto_type || val.type == UPB_VALUETYPE_RAW); \ return val.val.membername; \ } \ - void upb_value_set ## name(upb_value *val, ctype cval) { \ + INLINE void upb_value_set ## name(upb_value *val, ctype cval) { \ SET_TYPE(val->type, proto_type); \ val->val.membername = cval; \ } @@ -191,7 +191,7 @@ UPB_VALUE_ACCESSORS(bool, _bool, bool, UPB_TYPE(BOOL)); UPB_VALUE_ACCESSORS(str, str, upb_string*, UPB_TYPE(STRING)); UPB_VALUE_ACCESSORS(bytesrc, bytesrc, upb_bytesrc*, UPB_VALUETYPE_BYTESRC); -void upb_value_setraw(upb_value *val, uint64_t cval) { +INLINE void upb_value_setraw(upb_value *val, uint64_t cval) { SET_TYPE(val->type, UPB_VALUETYPE_RAW); val->val.uint64 = cval; } |