summaryrefslogtreecommitdiff
path: root/upb.h
diff options
context:
space:
mode:
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