summaryrefslogtreecommitdiff
path: root/upb.h
diff options
context:
space:
mode:
authorJoshua Haberman <joshua@reverberate.org>2009-07-02 20:19:06 -0700
committerJoshua Haberman <joshua@reverberate.org>2009-07-02 20:19:06 -0700
commitb0ef7f0b6778addc91ce04ca1d6e835d44387c83 (patch)
treeb67f490bd178d53c5fa2bc550fef77b0062efafb /upb.h
parentb8481e0e55aebad1d9ffa0f3845609f929bca02f (diff)
More fixes, completions, still doesn't quite work.
Diffstat (limited to 'upb.h')
-rw-r--r--upb.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/upb.h b/upb.h
index 563314c..ebf73c0 100644
--- a/upb.h
+++ b/upb.h
@@ -34,6 +34,8 @@ extern "C" {
/* The maximum number of fields that any one .proto type can have. */
#define UPB_MAX_FIELDS (1<<16)
+INLINE uint32_t max(uint32_t a, uint32_t b) { return a > b ? a : b; }
+
/* Represents a string or bytes. */
struct upb_string {
/* We expect the data to be 8-bit clean (uint8_t), but char* is such an
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback