Improve the detection of missing required fields.
[apps/agl-service-can-low-level.git] / pb.h
diff --git a/pb.h b/pb.h
index 502958b..fc74dbd 100644 (file)
--- a/pb.h
+++ b/pb.h
 #define UNUSED(x) (void)(x)
 #endif
 
+/* Number of required fields to keep track of
+ * (change here or on compiler command line). */
+#ifndef PB_MAX_REQUIRED_FIELDS
+#define PB_MAX_REQUIRED_FIELDS 64
+#endif
+
 /* List of possible field types. These are used in the autogenerated code.
  * Least-significant 4 bits tell the scalar type
  * Most-significant 4 bits specify repeated/required/packed etc.