Ardour  8.7-14-g57a6773833
LuaHelpers.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define LUA_OPEQ   1
 
#define LUA_OPLT   2
 
#define LUA_OPLE   3
 
#define LUABRIDGE_LUA_OK   0
 

Functions

int lua_absindex (lua_State *L, int idx)
 
void lua_rawgetp (lua_State *L, int idx, void const *p)
 
void lua_rawsetp (lua_State *L, int idx, void const *p)
 
int lua_compare (lua_State *L, int idx1, int idx2, int op)
 
int get_length (lua_State *L, int idx)
 
void rawgetfield (lua_State *L, int index, char const *key)
 
void rawsetfield (lua_State *L, int index, char const *key)
 
bool isfulluserdata (lua_State *L, int index)
 
bool equalstates (lua_State *L1, lua_State *L2)
 

Macro Definition Documentation

◆ LUA_OPEQ

#define LUA_OPEQ   1

Definition at line 57 of file LuaHelpers.h.

◆ LUA_OPLE

#define LUA_OPLE   3

Definition at line 59 of file LuaHelpers.h.

◆ LUA_OPLT

#define LUA_OPLT   2

Definition at line 58 of file LuaHelpers.h.

◆ LUABRIDGE_LUA_OK

#define LUABRIDGE_LUA_OK   0

Definition at line 99 of file LuaHelpers.h.

Function Documentation

◆ equalstates()

bool equalstates ( lua_State L1,
lua_State L2 
)
inline

Test lua_State objects for global equality.

This can determine if two different lua_State objects really point to the same global state, such as when using coroutines.

Note
This is used for assertions.

Definition at line 139 of file LuaHelpers.h.

◆ get_length()

int get_length ( lua_State L,
int  idx 
)
inline

Definition at line 82 of file LuaHelpers.h.

◆ isfulluserdata()

bool isfulluserdata ( lua_State L,
int  index 
)
inline

Returns true if the value is a full userdata (not light).

Definition at line 127 of file LuaHelpers.h.

◆ lua_absindex()

int lua_absindex ( lua_State L,
int  idx 
)
inline

Definition at line 33 of file LuaHelpers.h.

◆ lua_compare()

int lua_compare ( lua_State L,
int  idx1,
int  idx2,
int  op 
)
inline

Definition at line 61 of file LuaHelpers.h.

◆ lua_rawgetp()

void lua_rawgetp ( lua_State L,
int  idx,
void const *  p 
)
inline

Definition at line 41 of file LuaHelpers.h.

◆ lua_rawsetp()

void lua_rawsetp ( lua_State L,
int  idx,
void const *  p 
)
inline

Definition at line 48 of file LuaHelpers.h.

◆ rawgetfield()

void rawgetfield ( lua_State L,
int  index,
char const *  key 
)
inline

Get a table value, bypassing metamethods.

Definition at line 106 of file LuaHelpers.h.

◆ rawsetfield()

void rawsetfield ( lua_State L,
int  index,
char const *  key 
)
inline

Set a table value, bypassing metamethods.

Definition at line 116 of file LuaHelpers.h.