Macros | Functions
upb/upb/bindings/lua/upb.h File Reference
#include "lauxlib.h"
#include "upb/def.h"
#include "upb/msg.h"
#include "upb/reflection.h"
Include dependency graph for upb/upb/bindings/lua/upb.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define lupb_assert(L, predicate)
 
#define LUPB_UNREACHABLE()
 
#define LUPB_UNUSED(var)   (void)var
 

Functions

int lua_getiuservalue (lua_State *L, int index, int n)
 
int lua_setiuservalue (lua_State *L, int index, int n)
 
int luaopen_lupb (lua_State *L)
 
upb_Arenalupb_Arena_pushnew (lua_State *L)
 
bool lupb_checkbool (lua_State *L, int narg)
 
double lupb_checkdouble (lua_State *L, int narg)
 
float lupb_checkfloat (lua_State *L, int narg)
 
int32_t lupb_checkint32 (lua_State *L, int narg)
 
int64_t lupb_checkint64 (lua_State *L, int narg)
 
const char * lupb_checkname (lua_State *L, int narg)
 
void lupb_checkstatus (lua_State *L, upb_Status *s)
 
const char * lupb_checkstring (lua_State *L, int narg, size_t *len)
 
uint32_t lupb_checkuint32 (lua_State *L, int narg)
 
uint64_t lupb_checkuint64 (lua_State *L, int narg)
 
void lupb_def_registertypes (lua_State *L)
 
upb_DefPoollupb_DefPool_check (lua_State *L, int narg)
 
const upb_EnumDeflupb_EnumDef_check (lua_State *L, int narg)
 
const upb_FieldDeflupb_FieldDef_check (lua_State *L, int narg)
 
int lupb_MessageDef_call (lua_State *L)
 
const upb_MessageDeflupb_MessageDef_check (lua_State *L, int narg)
 
void lupb_MessageDef_pushsubmsgdef (lua_State *L, const upb_FieldDef *f)
 
void lupb_msg_registertypes (lua_State *L)
 
void * lupb_newuserdata (lua_State *L, size_t size, int n, const char *type)
 
void lupb_pushint32 (lua_State *L, int32_t val)
 
void lupb_pushint64 (lua_State *L, int64_t val)
 
void lupb_pushmsgval (lua_State *L, int container, upb_CType type, upb_MessageValue val)
 
void lupb_pushuint32 (lua_State *L, uint32_t val)
 
void lupb_pushuint64 (lua_State *L, uint64_t val)
 
void lupb_register_type (lua_State *L, const char *name, const luaL_Reg *m, const luaL_Reg *mm)
 

Macro Definition Documentation

◆ lupb_assert

#define lupb_assert (   L,
  predicate 
)
Value:
if (!(predicate)) \
luaL_error(L, "internal error: %s, %s:%d ", #predicate, __FILE__, __LINE__);

Definition at line 113 of file upb/upb/bindings/lua/upb.h.

◆ LUPB_UNREACHABLE

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

Definition at line 126 of file upb/upb/bindings/lua/upb.h.

◆ LUPB_UNUSED

#define LUPB_UNUSED (   var)    (void)var

Definition at line 117 of file upb/upb/bindings/lua/upb.h.

Function Documentation

◆ lua_getiuservalue()

int lua_getiuservalue ( lua_State *  L,
int  index,
int  n 
)

Definition at line 106 of file upb/upb/bindings/lua/upb.c.

◆ lua_setiuservalue()

int lua_setiuservalue ( lua_State *  L,
int  index,
int  n 
)

Definition at line 98 of file upb/upb/bindings/lua/upb.c.

◆ luaopen_lupb()

int luaopen_lupb ( lua_State *  L)

Definition at line 241 of file upb/upb/bindings/lua/upb.c.

◆ lupb_Arena_pushnew()

upb_Arena* lupb_Arena_pushnew ( lua_State *  L)

Definition at line 202 of file bindings/lua/msg.c.

◆ lupb_checkbool()

bool lupb_checkbool ( lua_State *  L,
int  narg 
)

Definition at line 163 of file upb/upb/bindings/lua/upb.c.

◆ lupb_checkdouble()

double lupb_checkdouble ( lua_State *  L,
int  narg 
)

Definition at line 215 of file upb/upb/bindings/lua/upb.c.

◆ lupb_checkfloat()

float lupb_checkfloat ( lua_State *  L,
int  narg 
)

Definition at line 227 of file upb/upb/bindings/lua/upb.c.

◆ lupb_checkint32()

int32_t lupb_checkint32 ( lua_State *  L,
int  narg 
)

◆ lupb_checkint64()

int64_t lupb_checkint64 ( lua_State *  L,
int  narg 
)

◆ lupb_checkname()

const char* lupb_checkname ( lua_State *  L,
int  narg 
)

◆ lupb_checkstatus()

void lupb_checkstatus ( lua_State *  L,
upb_Status s 
)

Definition at line 72 of file upb/upb/bindings/lua/upb.c.

◆ lupb_checkstring()

const char* lupb_checkstring ( lua_State *  L,
int  narg,
size_t *  len 
)

Definition at line 172 of file upb/upb/bindings/lua/upb.c.

◆ lupb_checkuint32()

uint32_t lupb_checkuint32 ( lua_State *  L,
int  narg 
)

◆ lupb_checkuint64()

uint64_t lupb_checkuint64 ( lua_State *  L,
int  narg 
)

◆ lupb_def_registertypes()

void lupb_def_registertypes ( lua_State *  L)

Definition at line 889 of file upb/upb/bindings/lua/def.c.

◆ lupb_DefPool_check()

upb_DefPool* lupb_DefPool_check ( lua_State *  L,
int  narg 
)

Definition at line 712 of file upb/upb/bindings/lua/def.c.

◆ lupb_EnumDef_check()

const upb_EnumDef* lupb_EnumDef_check ( lua_State *  L,
int  narg 
)

Definition at line 522 of file upb/upb/bindings/lua/def.c.

◆ lupb_FieldDef_check()

const upb_FieldDef* lupb_FieldDef_check ( lua_State *  L,
int  narg 
)

Definition at line 98 of file upb/upb/bindings/lua/def.c.

◆ lupb_MessageDef_call()

int lupb_MessageDef_call ( lua_State *  L)

lupb_MessageDef_call

Handles: new_msg = MessageClass() new_msg = MessageClass{foo = "bar", baz = 3, quux = {foo = 3}}

Definition at line 789 of file bindings/lua/msg.c.

◆ lupb_MessageDef_check()

const upb_MessageDef* lupb_MessageDef_check ( lua_State *  L,
int  narg 
)

From def.c.

Definition at line 322 of file upb/upb/bindings/lua/def.c.

◆ lupb_MessageDef_pushsubmsgdef()

void lupb_MessageDef_pushsubmsgdef ( lua_State *  L,
const upb_FieldDef f 
)

Definition at line 89 of file upb/upb/bindings/lua/def.c.

◆ lupb_msg_registertypes()

void lupb_msg_registertypes ( lua_State *  L)

Definition at line 1097 of file bindings/lua/msg.c.

◆ lupb_newuserdata()

void* lupb_newuserdata ( lua_State *  L,
size_t  size,
int  n,
const char *  type 
)

Definition at line 80 of file upb/upb/bindings/lua/upb.c.

◆ lupb_pushint32()

void lupb_pushint32 ( lua_State *  L,
int32_t  val 
)

◆ lupb_pushint64()

void lupb_pushint64 ( lua_State *  L,
int64_t  val 
)

◆ lupb_pushmsgval()

void lupb_pushmsgval ( lua_State *  L,
int  container,
upb_CType  type,
upb_MessageValue  val 
)

From msg.c.

Definition at line 319 of file bindings/lua/msg.c.

◆ lupb_pushuint32()

void lupb_pushuint32 ( lua_State *  L,
uint32_t  val 
)

◆ lupb_pushuint64()

void lupb_pushuint64 ( lua_State *  L,
uint64_t  val 
)

◆ lupb_register_type()

void lupb_register_type ( lua_State *  L,
const char *  name,
const luaL_Reg *  m,
const luaL_Reg *  mm 
)

Definition at line 132 of file upb/upb/bindings/lua/upb.c.

L
lua_State * L
Definition: upb/upb/bindings/lua/main.c:35


grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:37