summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Haberman <joshua@reverberate.org>2011-01-10 21:01:07 -0800
committerJoshua Haberman <joshua@reverberate.org>2011-01-10 21:01:07 -0800
commite9b9bbf216fdcbc86114b074dba6d0f51e4a438e (patch)
tree7c24b044d363138fdd132eebe75af48dbf94fc33
parentbcc688a303439c758a47da9f0eb1c064ece6ce09 (diff)
Add INLINE to a few identifiers.
-rw-r--r--core/upb.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/upb.h b/core/upb.h
index 64bc88c..764e9ba 100644
--- a/core/upb.h
+++ b/core/upb.h
@@ -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;
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback