Classes | Macros | Functions | Variables
upb/upb/bindings/lua/def.c File Reference
#include "upb/def.h"
#include <float.h>
#include <math.h>
#include <stdlib.h>
#include <string.h>
#include "lauxlib.h"
#include "upb/bindings/lua/upb.h"
#include "upb/reflection.h"
Include dependency graph for upb/upb/bindings/lua/def.c:

Go to the source code of this file.

Classes

struct  lupb_DefPool
 
struct  lupb_MessageDef
 
struct  lupb_wrapper
 

Macros

#define LUPB_CACHE_INDEX   1
 
#define LUPB_ENUMDEF   "lupb.enumdef"
 
#define LUPB_ENUMVALDEF   "lupb.enumvaldef"
 
#define LUPB_FIELDDEF   "lupb.fielddef"
 
#define LUPB_FILEDEF   "lupb.filedef"
 
#define LUPB_MSGDEF   "lupb.msgdef"
 
#define LUPB_OBJCACHE   "lupb.objcache"
 
#define LUPB_ONEOFDEF   "lupb.oneof"
 
#define LUPB_SYMTAB   "lupb.symtab"
 
#define LUPB_SYMTAB_INDEX   1
 

Functions

void lupb_def_registertypes (lua_State *L)
 
static int lupb_DefPool_AddFile (lua_State *L)
 
static int lupb_DefPool_addset (lua_State *L)
 
upb_DefPoollupb_DefPool_check (lua_State *L, int narg)
 
static int lupb_DefPool_FindEnumByName (lua_State *L)
 
static int lupb_DefPool_FindEnumByNameval (lua_State *L)
 
static int lupb_DefPool_FindMessageByName (lua_State *L)
 
static int lupb_DefPool_gc (lua_State *L)
 
static int lupb_DefPool_New (lua_State *L)
 
static void lupb_DefPool_pushwrapper (lua_State *L, int narg, const void *def, const char *type)
 
static int lupb_DefPool_tostring (lua_State *L)
 
const upb_EnumDeflupb_EnumDef_check (lua_State *L, int narg)
 
static int lupb_EnumDef_File (lua_State *L)
 
static int lupb_EnumDef_len (lua_State *L)
 
static int lupb_EnumDef_Value (lua_State *L)
 
const upb_EnumValueDeflupb_enumvaldef_check (lua_State *L, int narg)
 
static int lupb_EnumValueDef_Enum (lua_State *L)
 
static int lupb_EnumValueDef_FullName (lua_State *L)
 
static int lupb_EnumValueDef_Name (lua_State *L)
 
static int lupb_EnumValueDef_Number (lua_State *L)
 
const upb_FieldDeflupb_FieldDef_check (lua_State *L, int narg)
 
static int lupb_FieldDef_ContainingOneof (lua_State *L)
 
static int lupb_FieldDef_ContainingType (lua_State *L)
 
static int lupb_FieldDef_CType (lua_State *L)
 
static int lupb_FieldDef_Default (lua_State *L)
 
static int lupb_FieldDef_EnumSubDef (lua_State *L)
 
static int lupb_FieldDef_HasSubDef (lua_State *L)
 
static int lupb_FieldDef_Index (lua_State *L)
 
static int lupb_FieldDef_IsExtension (lua_State *L)
 
static int lupb_FieldDef_IsPacked (lua_State *L)
 
static int lupb_FieldDef_Label (lua_State *L)
 
static int lupb_FieldDef_MessageSubDef (lua_State *L)
 
static int lupb_FieldDef_Name (lua_State *L)
 
static int lupb_FieldDef_Number (lua_State *L)
 
static int lupb_FieldDef_Type (lua_State *L)
 
const upb_FileDeflupb_FileDef_check (lua_State *L, int narg)
 
static int lupb_FileDef_Dependency (lua_State *L)
 
static int lupb_FileDef_DependencyCount (lua_State *L)
 
static int lupb_FileDef_enum (lua_State *L)
 
static int lupb_FileDef_enumcount (lua_State *L)
 
static int lupb_FileDef_msg (lua_State *L)
 
static int lupb_FileDef_msgcount (lua_State *L)
 
static int lupb_FileDef_Name (lua_State *L)
 
static int lupb_FileDef_Package (lua_State *L)
 
static int lupb_FileDef_Pool (lua_State *L)
 
static int lupb_FileDef_Syntax (lua_State *L)
 
const upb_MessageDeflupb_MessageDef_check (lua_State *L, int narg)
 
static int lupb_MessageDef_Field (lua_State *L)
 
static int lupb_MessageDef_FieldCount (lua_State *L)
 
static int lupb_MessageDef_Fields (lua_State *L)
 
static int lupb_MessageDef_File (lua_State *L)
 
static int lupb_MessageDef_FindByNameWithSize (lua_State *L)
 
static int lupb_MessageDef_FullName (lua_State *L)
 
static int lupb_MessageDef_index (lua_State *L)
 
static int lupb_MessageDef_IsMapEntry (lua_State *L)
 
static int lupb_MessageDef_Name (lua_State *L)
 
static int lupb_MessageDef_OneofCount (lua_State *L)
 
static int lupb_MessageDef_Oneofs (lua_State *L)
 
static bool lupb_MessageDef_pushnested (lua_State *L, int msgdef, int name)
 
void lupb_MessageDef_pushsubmsgdef (lua_State *L, const upb_FieldDef *f)
 
static int lupb_MessageDef_Syntax (lua_State *L)
 
static int lupb_MessageDef_tostring (lua_State *L)
 
static int lupb_msgfielditer_next (lua_State *L)
 
static int lupb_msgoneofiter_next (lua_State *L)
 
const upb_OneofDeflupb_OneofDef_check (lua_State *L, int narg)
 
static int lupb_OneofDef_ContainingType (lua_State *L)
 
static int lupb_OneofDef_Field (lua_State *L)
 
static int lupb_OneofDef_Fields (lua_State *L)
 
static int lupb_OneofDef_len (lua_State *L)
 
static int lupb_OneofDef_lookupfield (lua_State *L)
 
static int lupb_OneofDef_Name (lua_State *L)
 
static int lupb_oneofiter_next (lua_State *L)
 
static void lupb_setfieldi (lua_State *L, const char *field, int i)
 
static const void * lupb_wrapper_check (lua_State *L, int narg, const char *type)
 
static void lupb_wrapper_pushsymtab (lua_State *L, int narg)
 
static void lupb_wrapper_pushwrapper (lua_State *L, int narg, const void *def, const char *type)
 

Variables

static const struct luaL_Reg lupb_DefPool_m []
 
static const struct luaL_Reg lupb_DefPool_mm []
 
static const struct luaL_Reg lupb_EnumDef_m []
 
static const struct luaL_Reg lupb_EnumDef_mm []
 
static const struct luaL_Reg lupb_enumvaldef_m []
 
static const struct luaL_Reg lupb_FieldDef_m []
 
static const struct luaL_Reg lupb_FileDef_m []
 
static const struct luaL_Reg lupb_MessageDef_m []
 
static const struct luaL_Reg lupb_MessageDef_mm []
 
static const struct luaL_Reg lupb_OneofDef_m []
 
static const struct luaL_Reg lupb_OneofDef_mm []
 
static const struct luaL_Reg lupbdef_toplevel_m []
 

Macro Definition Documentation

◆ LUPB_CACHE_INDEX

#define LUPB_CACHE_INDEX   1

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

◆ LUPB_ENUMDEF

#define LUPB_ENUMDEF   "lupb.enumdef"

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

◆ LUPB_ENUMVALDEF

#define LUPB_ENUMVALDEF   "lupb.enumvaldef"

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

◆ LUPB_FIELDDEF

#define LUPB_FIELDDEF   "lupb.fielddef"

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

◆ LUPB_FILEDEF

#define LUPB_FILEDEF   "lupb.filedef"

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

◆ LUPB_MSGDEF

#define LUPB_MSGDEF   "lupb.msgdef"

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

◆ LUPB_OBJCACHE

#define LUPB_OBJCACHE   "lupb.objcache"

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

◆ LUPB_ONEOFDEF

#define LUPB_ONEOFDEF   "lupb.oneof"

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

◆ LUPB_SYMTAB

#define LUPB_SYMTAB   "lupb.symtab"

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

◆ LUPB_SYMTAB_INDEX

#define LUPB_SYMTAB_INDEX   1

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

Function Documentation

◆ lupb_def_registertypes()

void lupb_def_registertypes ( lua_State *  L)

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

◆ lupb_DefPool_AddFile()

static int lupb_DefPool_AddFile ( lua_State *  L)
static

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

◆ lupb_DefPool_addset()

static int lupb_DefPool_addset ( lua_State *  L)
static

Definition at line 813 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_DefPool_FindEnumByName()

static int lupb_DefPool_FindEnumByName ( lua_State *  L)
static

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

◆ lupb_DefPool_FindEnumByNameval()

static int lupb_DefPool_FindEnumByNameval ( lua_State *  L)
static

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

◆ lupb_DefPool_FindMessageByName()

static int lupb_DefPool_FindMessageByName ( lua_State *  L)
static

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

◆ lupb_DefPool_gc()

static int lupb_DefPool_gc ( lua_State *  L)
static

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

◆ lupb_DefPool_New()

static int lupb_DefPool_New ( lua_State *  L)
static

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

◆ lupb_DefPool_pushwrapper()

void lupb_DefPool_pushwrapper ( lua_State *  L,
int  narg,
const void *  def,
const char *  type 
)
static

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

◆ lupb_DefPool_tostring()

static int lupb_DefPool_tostring ( lua_State *  L)
static

Definition at line 861 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_EnumDef_File()

static int lupb_EnumDef_File ( lua_State *  L)
static

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

◆ lupb_EnumDef_len()

static int lupb_EnumDef_len ( lua_State *  L)
static

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

◆ lupb_EnumDef_Value()

static int lupb_EnumDef_Value ( lua_State *  L)
static

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

◆ lupb_enumvaldef_check()

const upb_EnumValueDef* lupb_enumvaldef_check ( lua_State *  L,
int  narg 
)

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

◆ lupb_EnumValueDef_Enum()

static int lupb_EnumValueDef_Enum ( lua_State *  L)
static

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

◆ lupb_EnumValueDef_FullName()

static int lupb_EnumValueDef_FullName ( lua_State *  L)
static

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

◆ lupb_EnumValueDef_Name()

static int lupb_EnumValueDef_Name ( lua_State *  L)
static

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

◆ lupb_EnumValueDef_Number()

static int lupb_EnumValueDef_Number ( lua_State *  L)
static

Definition at line 599 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_FieldDef_ContainingOneof()

static int lupb_FieldDef_ContainingOneof ( lua_State *  L)
static

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

◆ lupb_FieldDef_ContainingType()

static int lupb_FieldDef_ContainingType ( lua_State *  L)
static

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

◆ lupb_FieldDef_CType()

static int lupb_FieldDef_CType ( lua_State *  L)
static

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

◆ lupb_FieldDef_Default()

static int lupb_FieldDef_Default ( lua_State *  L)
static

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

◆ lupb_FieldDef_EnumSubDef()

static int lupb_FieldDef_EnumSubDef ( lua_State *  L)
static

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

◆ lupb_FieldDef_HasSubDef()

static int lupb_FieldDef_HasSubDef ( lua_State *  L)
static

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

◆ lupb_FieldDef_Index()

static int lupb_FieldDef_Index ( lua_State *  L)
static

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

◆ lupb_FieldDef_IsExtension()

static int lupb_FieldDef_IsExtension ( lua_State *  L)
static

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

◆ lupb_FieldDef_IsPacked()

static int lupb_FieldDef_IsPacked ( lua_State *  L)
static

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

◆ lupb_FieldDef_Label()

static int lupb_FieldDef_Label ( lua_State *  L)
static

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

◆ lupb_FieldDef_MessageSubDef()

static int lupb_FieldDef_MessageSubDef ( lua_State *  L)
static

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

◆ lupb_FieldDef_Name()

static int lupb_FieldDef_Name ( lua_State *  L)
static

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

◆ lupb_FieldDef_Number()

static int lupb_FieldDef_Number ( lua_State *  L)
static

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

◆ lupb_FieldDef_Type()

static int lupb_FieldDef_Type ( lua_State *  L)
static

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

◆ lupb_FileDef_check()

const upb_FileDef* lupb_FileDef_check ( lua_State *  L,
int  narg 
)

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

◆ lupb_FileDef_Dependency()

static int lupb_FileDef_Dependency ( lua_State *  L)
static

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

◆ lupb_FileDef_DependencyCount()

static int lupb_FileDef_DependencyCount ( lua_State *  L)
static

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

◆ lupb_FileDef_enum()

static int lupb_FileDef_enum ( lua_State *  L)
static

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

◆ lupb_FileDef_enumcount()

static int lupb_FileDef_enumcount ( lua_State *  L)
static

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

◆ lupb_FileDef_msg()

static int lupb_FileDef_msg ( lua_State *  L)
static

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

◆ lupb_FileDef_msgcount()

static int lupb_FileDef_msgcount ( lua_State *  L)
static

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

◆ lupb_FileDef_Name()

static int lupb_FileDef_Name ( lua_State *  L)
static

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

◆ lupb_FileDef_Package()

static int lupb_FileDef_Package ( lua_State *  L)
static

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

◆ lupb_FileDef_Pool()

static int lupb_FileDef_Pool ( lua_State *  L)
static

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

◆ lupb_FileDef_Syntax()

static int lupb_FileDef_Syntax ( lua_State *  L)
static

Definition at line 679 of file upb/upb/bindings/lua/def.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_Field()

static int lupb_MessageDef_Field ( lua_State *  L)
static

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

◆ lupb_MessageDef_FieldCount()

static int lupb_MessageDef_FieldCount ( lua_State *  L)
static

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

◆ lupb_MessageDef_Fields()

static int lupb_MessageDef_Fields ( lua_State *  L)
static

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

◆ lupb_MessageDef_File()

static int lupb_MessageDef_File ( lua_State *  L)
static

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

◆ lupb_MessageDef_FindByNameWithSize()

static int lupb_MessageDef_FindByNameWithSize ( lua_State *  L)
static

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

◆ lupb_MessageDef_FullName()

static int lupb_MessageDef_FullName ( lua_State *  L)
static

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

◆ lupb_MessageDef_index()

static int lupb_MessageDef_index ( lua_State *  L)
static

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

◆ lupb_MessageDef_IsMapEntry()

static int lupb_MessageDef_IsMapEntry ( lua_State *  L)
static

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

◆ lupb_MessageDef_Name()

static int lupb_MessageDef_Name ( lua_State *  L)
static

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

◆ lupb_MessageDef_OneofCount()

static int lupb_MessageDef_OneofCount ( lua_State *  L)
static

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

◆ lupb_MessageDef_Oneofs()

static int lupb_MessageDef_Oneofs ( lua_State *  L)
static

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

◆ lupb_MessageDef_pushnested()

static bool lupb_MessageDef_pushnested ( lua_State *  L,
int  msgdef,
int  name 
)
static

Definition at line 338 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_MessageDef_Syntax()

static int lupb_MessageDef_Syntax ( lua_State *  L)
static

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

◆ lupb_MessageDef_tostring()

static int lupb_MessageDef_tostring ( lua_State *  L)
static

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

◆ lupb_msgfielditer_next()

static int lupb_msgfielditer_next ( lua_State *  L)
static

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

◆ lupb_msgoneofiter_next()

static int lupb_msgoneofiter_next ( lua_State *  L)
static

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

◆ lupb_OneofDef_check()

const upb_OneofDef* lupb_OneofDef_check ( lua_State *  L,
int  narg 
)

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

◆ lupb_OneofDef_ContainingType()

static int lupb_OneofDef_ContainingType ( lua_State *  L)
static

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

◆ lupb_OneofDef_Field()

static int lupb_OneofDef_Field ( lua_State *  L)
static

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

◆ lupb_OneofDef_Fields()

static int lupb_OneofDef_Fields ( lua_State *  L)
static

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

◆ lupb_OneofDef_len()

static int lupb_OneofDef_len ( lua_State *  L)
static

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

◆ lupb_OneofDef_lookupfield()

static int lupb_OneofDef_lookupfield ( lua_State *  L)
static

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

◆ lupb_OneofDef_Name()

static int lupb_OneofDef_Name ( lua_State *  L)
static

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

◆ lupb_oneofiter_next()

static int lupb_oneofiter_next ( lua_State *  L)
static

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

◆ lupb_setfieldi()

static void lupb_setfieldi ( lua_State *  L,
const char *  field,
int  i 
)
static

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

◆ lupb_wrapper_check()

static const void* lupb_wrapper_check ( lua_State *  L,
int  narg,
const char *  type 
)
static

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

◆ lupb_wrapper_pushsymtab()

static void lupb_wrapper_pushsymtab ( lua_State *  L,
int  narg 
)
static

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

◆ lupb_wrapper_pushwrapper()

static void lupb_wrapper_pushwrapper ( lua_State *  L,
int  narg,
const void *  def,
const char *  type 
)
static

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

Variable Documentation

◆ lupb_DefPool_m

const struct luaL_Reg lupb_DefPool_m[]
static
Initial value:
= {
{"add_file", lupb_DefPool_AddFile},
{"add_set", lupb_DefPool_addset},
{"lookup_enum", lupb_DefPool_FindEnumByName},
{"lookup_enumval", lupb_DefPool_FindEnumByNameval},
{NULL, NULL}}

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

◆ lupb_DefPool_mm

const struct luaL_Reg lupb_DefPool_mm[]
static
Initial value:
= {
{"__gc", lupb_DefPool_gc},
{"__tostring", lupb_DefPool_tostring},
{NULL, NULL}}

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

◆ lupb_EnumDef_m

const struct luaL_Reg lupb_EnumDef_m[]
static
Initial value:
= {
{"file", lupb_EnumDef_File}, {"value", lupb_EnumDef_Value}, {NULL, NULL}}

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

◆ lupb_EnumDef_mm

const struct luaL_Reg lupb_EnumDef_mm[]
static
Initial value:
= {{"__len", lupb_EnumDef_len},
{NULL, NULL}}

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

◆ lupb_enumvaldef_m

const struct luaL_Reg lupb_enumvaldef_m[]
static
Initial value:
= {
{NULL, NULL}}

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

◆ lupb_FieldDef_m

const struct luaL_Reg lupb_FieldDef_m[]
static
Initial value:
= {
{"containing_oneof", lupb_FieldDef_ContainingOneof},
{"containing_type", lupb_FieldDef_ContainingType},
{"default", lupb_FieldDef_Default},
{"descriptor_type", lupb_FieldDef_Type},
{"has_subdef", lupb_FieldDef_HasSubDef},
{"index", lupb_FieldDef_Index},
{"is_extension", lupb_FieldDef_IsExtension},
{"label", lupb_FieldDef_Label},
{"name", lupb_FieldDef_Name},
{"number", lupb_FieldDef_Number},
{"enumsubdef", lupb_FieldDef_EnumSubDef},
{NULL, NULL}}

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

◆ lupb_FileDef_m

const struct luaL_Reg lupb_FileDef_m[]
static
Initial value:
= {
{"enum", lupb_FileDef_enum},
{"enumcount", lupb_FileDef_enumcount},
{"msg", lupb_FileDef_msg},
{"msgcount", lupb_FileDef_msgcount},
{"name", lupb_FileDef_Name},
{"package", lupb_FileDef_Package},
{"symtab", lupb_FileDef_Pool},
{"syntax", lupb_FileDef_Syntax},
{NULL, NULL}}

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

◆ lupb_MessageDef_m

const struct luaL_Reg lupb_MessageDef_m[]
static
Initial value:
= {
{"field_count", lupb_MessageDef_FieldCount},
{"full_name", lupb_MessageDef_FullName},
{"oneof_count", lupb_MessageDef_OneofCount},
{"_map_entry", lupb_MessageDef_IsMapEntry},
{NULL, NULL}}

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

◆ lupb_MessageDef_mm

const struct luaL_Reg lupb_MessageDef_mm[]
static
Initial value:
= {
{"__call", lupb_MessageDef_call},
{"__index", lupb_MessageDef_index},
{"__tostring", lupb_MessageDef_tostring},
{NULL, NULL}}

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

◆ lupb_OneofDef_m

const struct luaL_Reg lupb_OneofDef_m[]
static
Initial value:
= {
{"containing_type", lupb_OneofDef_ContainingType},
{"field", lupb_OneofDef_Field},
{"fields", lupb_OneofDef_Fields},
{"lookup_field", lupb_OneofDef_lookupfield},
{"name", lupb_OneofDef_Name},
{NULL, NULL}}

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

◆ lupb_OneofDef_mm

const struct luaL_Reg lupb_OneofDef_mm[]
static
Initial value:
= {{"__len", lupb_OneofDef_len},
{NULL, NULL}}

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

◆ lupbdef_toplevel_m

const struct luaL_Reg lupbdef_toplevel_m[]
static
Initial value:
= {
{"SymbolTable", lupb_DefPool_New}, {NULL, NULL}}

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

lupb_FileDef_Pool
static int lupb_FileDef_Pool(lua_State *L)
Definition: upb/upb/bindings/lua/def.c:672
lupb_MessageDef_Fields
static int lupb_MessageDef_Fields(lua_State *L)
Definition: upb/upb/bindings/lua/def.c:429
lupb_FileDef_Syntax
static int lupb_FileDef_Syntax(lua_State *L)
Definition: upb/upb/bindings/lua/def.c:679
lupb_FieldDef_CType
static int lupb_FieldDef_CType(lua_State *L)
Definition: upb/upb/bindings/lua/def.c:193
lupb_FieldDef_EnumSubDef
static int lupb_FieldDef_EnumSubDef(lua_State *L)
Definition: upb/upb/bindings/lua/def.c:186
lupb_EnumValueDef_Number
static int lupb_EnumValueDef_Number(lua_State *L)
Definition: upb/upb/bindings/lua/def.c:599
lupb_FileDef_enum
static int lupb_FileDef_enum(lua_State *L)
Definition: upb/upb/bindings/lua/def.c:632
lupb_MessageDef_OneofCount
static int lupb_MessageDef_OneofCount(lua_State *L)
Definition: upb/upb/bindings/lua/def.c:332
lupb_DefPool_AddFile
static int lupb_DefPool_AddFile(lua_State *L)
Definition: upb/upb/bindings/lua/def.c:789
lupb_OneofDef_Field
static int lupb_OneofDef_Field(lua_State *L)
Definition: upb/upb/bindings/lua/def.c:229
lupb_FieldDef_Type
static int lupb_FieldDef_Type(lua_State *L)
Definition: upb/upb/bindings/lua/def.c:126
lupb_OneofDef_Fields
static int lupb_OneofDef_Fields(lua_State *L)
Definition: upb/upb/bindings/lua/def.c:254
lupb_FieldDef_Index
static int lupb_FieldDef_Index(lua_State *L)
Definition: upb/upb/bindings/lua/def.c:138
lupb_EnumDef_len
static int lupb_EnumDef_len(lua_State *L)
Definition: upb/upb/bindings/lua/def.c:526
lupb_DefPool_FindEnumByNameval
static int lupb_DefPool_FindEnumByNameval(lua_State *L)
Definition: upb/upb/bindings/lua/def.c:853
lupb_MessageDef_Oneofs
static int lupb_MessageDef_Oneofs(lua_State *L)
Definition: upb/upb/bindings/lua/def.c:469
lupb_OneofDef_ContainingType
static int lupb_OneofDef_ContainingType(lua_State *L)
Definition: upb/upb/bindings/lua/def.c:222
lupb_MessageDef_Field
static int lupb_MessageDef_Field(lua_State *L)
Definition: upb/upb/bindings/lua/def.c:365
lupb_DefPool_addset
static int lupb_DefPool_addset(lua_State *L)
Definition: upb/upb/bindings/lua/def.c:813
lupb_MessageDef_Syntax
static int lupb_MessageDef_Syntax(lua_State *L)
Definition: upb/upb/bindings/lua/def.c:485
lupb_DefPool_tostring
static int lupb_DefPool_tostring(lua_State *L)
Definition: upb/upb/bindings/lua/def.c:861
lupb_FileDef_msg
static int lupb_FileDef_msg(lua_State *L)
Definition: upb/upb/bindings/lua/def.c:646
lupb_FileDef_enumcount
static int lupb_FileDef_enumcount(lua_State *L)
Definition: upb/upb/bindings/lua/def.c:640
lupb_OneofDef_Name
static int lupb_OneofDef_Name(lua_State *L)
Definition: upb/upb/bindings/lua/def.c:298
lupb_MessageDef_File
static int lupb_MessageDef_File(lua_State *L)
Definition: upb/upb/bindings/lua/def.c:439
lupb_MessageDef_index
static int lupb_MessageDef_index(lua_State *L)
Definition: upb/upb/bindings/lua/def.c:452
lupb_EnumValueDef_Name
static int lupb_EnumValueDef_Name(lua_State *L)
Definition: upb/upb/bindings/lua/def.c:593
lupb_FieldDef_HasSubDef
static int lupb_FieldDef_HasSubDef(lua_State *L)
Definition: upb/upb/bindings/lua/def.c:132
lupb_MessageDef_Name
static int lupb_MessageDef_Name(lua_State *L)
Definition: upb/upb/bindings/lua/def.c:413
lupb_MessageDef_FieldCount
static int lupb_MessageDef_FieldCount(lua_State *L)
Definition: upb/upb/bindings/lua/def.c:326
lupb_FieldDef_Label
static int lupb_FieldDef_Label(lua_State *L)
Definition: upb/upb/bindings/lua/def.c:150
lupb_DefPool_FindMessageByName
static int lupb_DefPool_FindMessageByName(lua_State *L)
Definition: upb/upb/bindings/lua/def.c:838
lupb_FieldDef_ContainingOneof
static int lupb_FieldDef_ContainingOneof(lua_State *L)
Definition: upb/upb/bindings/lua/def.c:102
lupb_FieldDef_MessageSubDef
static int lupb_FieldDef_MessageSubDef(lua_State *L)
Definition: upb/upb/bindings/lua/def.c:179
lupb_EnumDef_File
static int lupb_EnumDef_File(lua_State *L)
Definition: upb/upb/bindings/lua/def.c:532
lupb_FieldDef_IsPacked
static int lupb_FieldDef_IsPacked(lua_State *L)
Definition: upb/upb/bindings/lua/def.c:173
lupb_DefPool_New
static int lupb_DefPool_New(lua_State *L)
Definition: upb/upb/bindings/lua/def.c:759
lupb_FileDef_Name
static int lupb_FileDef_Name(lua_State *L)
Definition: upb/upb/bindings/lua/def.c:660
lupb_FieldDef_Number
static int lupb_FieldDef_Number(lua_State *L)
Definition: upb/upb/bindings/lua/def.c:162
lupb_EnumDef_Value
static int lupb_EnumDef_Value(lua_State *L)
Definition: upb/upb/bindings/lua/def.c:545
lupb_FieldDef_IsExtension
static int lupb_FieldDef_IsExtension(lua_State *L)
Definition: upb/upb/bindings/lua/def.c:144
lupb_DefPool_FindEnumByName
static int lupb_DefPool_FindEnumByName(lua_State *L)
Definition: upb/upb/bindings/lua/def.c:846
lupb_FileDef_Package
static int lupb_FileDef_Package(lua_State *L)
Definition: upb/upb/bindings/lua/def.c:666
lupb_OneofDef_lookupfield
static int lupb_OneofDef_lookupfield(lua_State *L)
Definition: upb/upb/bindings/lua/def.c:276
lupb_MessageDef_FullName
static int lupb_MessageDef_FullName(lua_State *L)
Definition: upb/upb/bindings/lua/def.c:446
lupb_MessageDef_IsMapEntry
static int lupb_MessageDef_IsMapEntry(lua_State *L)
Definition: upb/upb/bindings/lua/def.c:479
lupb_MessageDef_FindByNameWithSize
static int lupb_MessageDef_FindByNameWithSize(lua_State *L)
Definition: upb/upb/bindings/lua/def.c:392
lupb_FieldDef_ContainingType
static int lupb_FieldDef_ContainingType(lua_State *L)
Definition: upb/upb/bindings/lua/def.c:109
lupb_EnumValueDef_Enum
static int lupb_EnumValueDef_Enum(lua_State *L)
Definition: upb/upb/bindings/lua/def.c:580
lupb_OneofDef_len
static int lupb_OneofDef_len(lua_State *L)
Definition: upb/upb/bindings/lua/def.c:264
lupb_FileDef_Dependency
static int lupb_FileDef_Dependency(lua_State *L)
Definition: upb/upb/bindings/lua/def.c:618
lupb_EnumValueDef_FullName
static int lupb_EnumValueDef_FullName(lua_State *L)
Definition: upb/upb/bindings/lua/def.c:587
lupb_MessageDef_tostring
static int lupb_MessageDef_tostring(lua_State *L)
Definition: upb/upb/bindings/lua/def.c:491
lupb_FieldDef_Default
static int lupb_FieldDef_Default(lua_State *L)
Definition: upb/upb/bindings/lua/def.c:116
lupb_FileDef_DependencyCount
static int lupb_FileDef_DependencyCount(lua_State *L)
Definition: upb/upb/bindings/lua/def.c:626
lupb_FieldDef_Name
static int lupb_FieldDef_Name(lua_State *L)
Definition: upb/upb/bindings/lua/def.c:156
lupb_DefPool_gc
static int lupb_DefPool_gc(lua_State *L)
Definition: upb/upb/bindings/lua/def.c:782
lupb_MessageDef_call
int lupb_MessageDef_call(lua_State *L)
Definition: bindings/lua/msg.c:789
lupb_FileDef_msgcount
static int lupb_FileDef_msgcount(lua_State *L)
Definition: upb/upb/bindings/lua/def.c:654


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