summaryrefslogtreecommitdiff
path: root/src/upb.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/upb.c')
-rw-r--r--src/upb.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/upb.c b/src/upb.c
index 6bb1ccc..fdf5c07 100644
--- a/src/upb.c
+++ b/src/upb.c
@@ -8,7 +8,7 @@
#include <stdarg.h>
#include <stddef.h>
#include <string.h>
-
+#include "descriptor_const.h"
#include "upb.h"
#include "upb_string.h"
@@ -40,6 +40,12 @@ const upb_type_info upb_types[] = {
TYPE_INFO(UPB_WIRE_TYPE_VARINT, int64_t, 1, INT64) // SINT64
};
+#ifdef NDEBUG
+upb_value UPB_NO_VALUE = {{0}};
+#else
+upb_value UPB_NO_VALUE = {{0}, UPB_VALUETYPE_RAW};
+#endif
+
void upb_seterr(upb_status *status, enum upb_status_code code,
const char *msg, ...) {
status->code = code;
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback