• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Protocol Buffers - Google's data interchange format
2 // Copyright 2023 Google LLC.  All rights reserved.
3 //
4 // Use of this source code is governed by a BSD-style
5 // license that can be found in the LICENSE file or at
6 // https://developers.google.com/open-source/licenses/bsd
7 
8 #ifndef UPB_MINI_TABLE_ENUM_H_
9 #define UPB_MINI_TABLE_ENUM_H_
10 
11 #include <stdint.h>
12 
13 #include "upb/mini_table/internal/enum.h"
14 
15 // Must be last
16 #include "upb/port/def.inc"
17 
18 typedef struct upb_MiniTableEnum upb_MiniTableEnum;
19 
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23 
24 // Validates enum value against range defined by enum mini table.
25 UPB_API_INLINE bool upb_MiniTableEnum_CheckValue(const upb_MiniTableEnum* e,
26                                                  uint32_t val);
27 
28 #ifdef __cplusplus
29 } /* extern "C" */
30 #endif
31 
32 #include "upb/port/undef.inc"
33 
34 #endif /* UPB_MINI_TABLE_ENUM_H_ */
35