diff options
author | Joshua Haberman <joshua@reverberate.org> | 2009-07-08 19:40:02 -0700 |
---|---|---|
committer | Joshua Haberman <joshua@reverberate.org> | 2009-07-08 19:40:02 -0700 |
commit | e8718306a5bc688bea31c03d52b997166f0ba578 (patch) | |
tree | ec04fb32519464a046f7f442af89b86bcb870837 /src/upb.h | |
parent | 35b5a016c20a6ce1f679a377005900b190dedfa1 (diff) |
Bugfix and additions to upb.h and upb_string.h
Diffstat (limited to 'src/upb.h')
-rw-r--r-- | src/upb.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -36,6 +36,7 @@ extern "C" { #define UPB_INDEX(base, i, m) (void*)((char*)(base) + ((i)*(m))) INLINE uint32_t max(uint32_t a, uint32_t b) { return a > b ? a : b; } +INLINE uint32_t min(uint32_t a, uint32_t b) { return a < b ? a : b; } /* Value type as defined in a .proto file. The values of this are defined by * google_protobuf_FieldDescriptorProto_Type (from descriptor.proto). |