WPILibC++ 2027.0.0-alpha-3
Loading...
Searching...
No Matches
def.inc File Reference
#include <assert.h>
#include <setjmp.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>

Go to the source code of this file.

Macros

#define UPB_BOOTSTRAP_STAGE   0
 
#define UPB_GNUC_MIN(x, y)
 
#define UPB_HAS_ATTRIBUTE(x)
 
#define UPB_HAS_BUILTIN(x)
 
#define UPB_HAS_EXTENSION(x)
 
#define UPB_HAS_FEATURE(x)
 
#define UPB_SIZE(size32, size64)
 
#define UPB_PTR_AT(msg, ofs, type)
 
#define UPB_SIZEOF_FLEX(type, member, count)
 
#define UPB_SIZEOF_FLEX_WOULD_OVERFLOW(type, member, count)
 
#define UPB_ARRAY_SIZE(arr)
 
#define UPB_MAPTYPE_STRING   0
 
#define UPB_EXPORT
 
#define UPB_INLINE   inline
 
#define UPB_INLINE_IF_NOT_GCC   UPB_INLINE
 
#define UPB_API
 
#define UPB_API_INLINE   UPB_INLINE
 
#define UPBC_API
 
#define UPB_ASAN   0
 
#define UPB_HWASAN   0
 
#define UPB_MALLOC_ALIGN   8
 
#define UPB_TSAN   0
 
#define UPB_XSAN_MEMBER
 
#define UPB_XSAN(st)
 
#define UPB_XSAN_STRUCT_SIZE   0
 
#define UPB_ALIGN_UP(size, align)
 
#define UPB_ALIGN_DOWN(size, align)
 
#define UPB_ALIGN_MALLOC(size)
 
#define UPB_ALIGN_OF(type)
 
#define UPB_ALIGN_AS(x)
 
#define UPB_STATIC_ASSERT(val, msg)
 
#define UPB_LIKELY(x)
 
#define UPB_UNLIKELY(x)
 
#define UPB_UNPREDICTABLE(x)
 
#define UPB_FORCEINLINE   static
 
#define UPB_NOINLINE
 
#define UPB_NORETURN
 
#define UPB_PRINTF(str, first_vararg)
 
#define UPB_NODEREF
 
#define UPB_MAX(x, y)
 
#define UPB_MIN(x, y)
 
#define UPB_UNUSED(var)
 
#define UPB_ASSUME(expr)
 
#define UPB_ASSERT(expr)
 
#define UPB_UNREACHABLE()
 
#define UPB_DEFAULT_MAX_BLOCK_SIZE   32768
 
#define UPB_SETJMP(buf)
 
#define UPB_LONGJMP(buf, val)
 
#define UPB_ATOMIC(T)
 
#define UPB_PTRADD(ptr, ofs)
 
#define UPB_PRIVATE(x)
 
#define UPB_ONLYBITS(x)
 
#define UPB_MUSTTAIL
 
#define UPB_PRESERVE_NONE
 
#define UPB_FASTTABLE_SUPPORTED   0
 
#define UPB_FASTTABLE   0
 
#define UPB_FASTTABLE_INIT(...)
 
#define UPB_FASTTABLE_MASK(mask)
 
#define UPB_TREAT_CLOSED_ENUMS_LIKE_OPEN   0
 
#define UPB_DEPRECATED
 
#define UPB_DESC(sym)
 
#define UPB_DESC_MINITABLE(sym)
 
#define UPB_NO_SANITIZE_ADDRESS
 
#define UPB_LINKARR_APPEND(name)
 

Variables

 Error
 

Macro Definition Documentation

◆ UPB_ALIGN_AS

#define UPB_ALIGN_AS ( x)
Value:
_Alignas(x)

◆ UPB_ALIGN_DOWN

#define UPB_ALIGN_DOWN ( size,
align )
Value:
((size) / (align) * (align))
align
Definition base.h:681

◆ UPB_ALIGN_MALLOC

#define UPB_ALIGN_MALLOC ( size)
Value:
#define UPB_ALIGN_UP(size, align)
Definition def.inc:205
#define UPB_MALLOC_ALIGN
Definition def.inc:184

◆ UPB_ALIGN_OF

#define UPB_ALIGN_OF ( type)
Value:
alignof(type)

◆ UPB_ALIGN_UP

#define UPB_ALIGN_UP ( size,
align )
Value:
(((size) + (align) - 1) / (align) * (align))

◆ UPB_API

#define UPB_API

◆ UPB_API_INLINE

#define UPB_API_INLINE   UPB_INLINE

◆ UPB_ARRAY_SIZE

#define UPB_ARRAY_SIZE ( arr)
Value:
(sizeof(arr) / sizeof(arr[0]))

◆ UPB_ASAN

#define UPB_ASAN   0

◆ UPB_ASSERT

#define UPB_ASSERT ( expr)
Value:
assert(expr)

◆ UPB_ASSUME

#define UPB_ASSUME ( expr)
Value:
assert(expr)

◆ UPB_ATOMIC

#define UPB_ATOMIC ( T)
Value:
T

◆ UPB_BOOTSTRAP_STAGE

#define UPB_BOOTSTRAP_STAGE   0

◆ UPB_DEFAULT_MAX_BLOCK_SIZE

#define UPB_DEFAULT_MAX_BLOCK_SIZE   32768

◆ UPB_DEPRECATED

#define UPB_DEPRECATED

◆ UPB_DESC

#define UPB_DESC ( sym)
Value:
google_protobuf_##sym

◆ UPB_DESC_MINITABLE

#define UPB_DESC_MINITABLE ( sym)
Value:
google__protobuf__##sym##_msg_init()

◆ UPB_EXPORT

#define UPB_EXPORT

◆ UPB_FASTTABLE

#define UPB_FASTTABLE   0

◆ UPB_FASTTABLE_INIT

#define UPB_FASTTABLE_INIT ( ...)

◆ UPB_FASTTABLE_MASK

#define UPB_FASTTABLE_MASK ( mask)
Value:
-1

◆ UPB_FASTTABLE_SUPPORTED

#define UPB_FASTTABLE_SUPPORTED   0

◆ UPB_FORCEINLINE

#define UPB_FORCEINLINE   static

◆ UPB_GNUC_MIN

#define UPB_GNUC_MIN ( x,
y )
Value:
0

◆ UPB_HAS_ATTRIBUTE

#define UPB_HAS_ATTRIBUTE ( x)
Value:
0

◆ UPB_HAS_BUILTIN

#define UPB_HAS_BUILTIN ( x)
Value:
0

◆ UPB_HAS_EXTENSION

#define UPB_HAS_EXTENSION ( x)
Value:
0

◆ UPB_HAS_FEATURE

#define UPB_HAS_FEATURE ( x)
Value:
0

◆ UPB_HWASAN

#define UPB_HWASAN   0

◆ UPB_INLINE

#define UPB_INLINE   inline

◆ UPB_INLINE_IF_NOT_GCC

#define UPB_INLINE_IF_NOT_GCC   UPB_INLINE

◆ UPB_LIKELY

#define UPB_LIKELY ( x)
Value:
(x)

◆ UPB_LINKARR_APPEND

#define UPB_LINKARR_APPEND ( name)

◆ UPB_LONGJMP

#define UPB_LONGJMP ( buf,
val )
Value:
longjmp(buf, val)

◆ UPB_MALLOC_ALIGN

#define UPB_MALLOC_ALIGN   8

◆ UPB_MAPTYPE_STRING

#define UPB_MAPTYPE_STRING   0

◆ UPB_MAX

#define UPB_MAX ( x,
y )
Value:
((x) > (y) ? (x) : (y))

◆ UPB_MIN

#define UPB_MIN ( x,
y )
Value:
((x) < (y) ? (x) : (y))

◆ UPB_MUSTTAIL

#define UPB_MUSTTAIL

◆ UPB_NO_SANITIZE_ADDRESS

#define UPB_NO_SANITIZE_ADDRESS

◆ UPB_NODEREF

#define UPB_NODEREF

◆ UPB_NOINLINE

#define UPB_NOINLINE

◆ UPB_NORETURN

#define UPB_NORETURN

◆ UPB_ONLYBITS

#define UPB_ONLYBITS ( x)
Value:
#define UPB_PRIVATE(x)
Definition def.inc:393

◆ UPB_PRESERVE_NONE

#define UPB_PRESERVE_NONE

◆ UPB_PRINTF

#define UPB_PRINTF ( str,
first_vararg )

◆ UPB_PRIVATE

#define UPB_PRIVATE ( x)
Value:
x##_dont_copy_me__upb_internal_use_only

◆ UPB_PTR_AT

#define UPB_PTR_AT ( msg,
ofs,
type )
Value:
((type *)((char *)(msg) + (ofs)))

◆ UPB_PTRADD

#define UPB_PTRADD ( ptr,
ofs )
Value:
((ofs) ? (ptr) + (ofs) : (ptr))
auto ptr(T p) -> const void *
Converts p to const void* for pointer formatting.
Definition format.h:3963

◆ UPB_SETJMP

#define UPB_SETJMP ( buf)
Value:
setjmp(buf)

◆ UPB_SIZE

#define UPB_SIZE ( size32,
size64 )
Value:
size64

◆ UPB_SIZEOF_FLEX

#define UPB_SIZEOF_FLEX ( type,
member,
count )
Value:
UPB_MAX(sizeof(type), offsetof(type, member[count]))
#define UPB_MAX(x, y)
Definition def.inc:300

◆ UPB_SIZEOF_FLEX_WOULD_OVERFLOW

#define UPB_SIZEOF_FLEX_WOULD_OVERFLOW ( type,
member,
count )
Value:
(((SIZE_MAX - offsetof(type, member[0])) / \
(offsetof(type, member[1]) - offsetof(type, member[0]))) < (size_t)count)

◆ UPB_STATIC_ASSERT

#define UPB_STATIC_ASSERT ( val,
msg )
Value:
static_assert((val), msg)

◆ UPB_TREAT_CLOSED_ENUMS_LIKE_OPEN

#define UPB_TREAT_CLOSED_ENUMS_LIKE_OPEN   0

◆ UPB_TSAN

#define UPB_TSAN   0

◆ UPB_UNLIKELY

#define UPB_UNLIKELY ( x)
Value:
(x)

◆ UPB_UNPREDICTABLE

#define UPB_UNPREDICTABLE ( x)
Value:
(x)

◆ UPB_UNREACHABLE

#define UPB_UNREACHABLE ( )
Value:
do { \
assert(0); \
} while (0)

◆ UPB_UNUSED

#define UPB_UNUSED ( var)
Value:
(void)(var)

◆ UPB_XSAN

#define UPB_XSAN ( st)
Value:
(NULL)

◆ UPB_XSAN_MEMBER

#define UPB_XSAN_MEMBER

◆ UPB_XSAN_STRUCT_SIZE

#define UPB_XSAN_STRUCT_SIZE   0

◆ UPBC_API

#define UPBC_API

Variable Documentation

◆ Error

Error