Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-30 10:25:23

0001 // Protocol Buffers - Google's data interchange format
0002 // Copyright 2023 Google LLC.  All rights reserved.
0003 //
0004 // Use of this source code is governed by a BSD-style
0005 // license that can be found in the LICENSE file or at
0006 // https://developers.google.com/open-source/licenses/bsd
0007 
0008 #ifndef UPB_MINI_TABLE_ENUM_H_
0009 #define UPB_MINI_TABLE_ENUM_H_
0010 
0011 #include <stdint.h>
0012 
0013 #include "upb/mini_table/internal/enum.h"
0014 
0015 // Must be last
0016 #include "upb/port/def.inc"
0017 
0018 typedef struct upb_MiniTableEnum upb_MiniTableEnum;
0019 
0020 #ifdef __cplusplus
0021 extern "C" {
0022 #endif
0023 
0024 // Validates enum value against range defined by enum mini table.
0025 UPB_API_INLINE bool upb_MiniTableEnum_CheckValue(const upb_MiniTableEnum* e,
0026                                                  uint32_t val);
0027 
0028 #ifdef __cplusplus
0029 } /* extern "C" */
0030 #endif
0031 
0032 #include "upb/port/undef.inc"
0033 
0034 #endif /* UPB_MINI_TABLE_ENUM_H_ */