Pioneer
Loading...
Searching...
No Matches
Namespaces | Macros | Functions
LuaUtils.h File Reference
#include "utils.h"
#include <lua.hpp>
#include <string>
Include dependency graph for LuaUtils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  FileSystem
 

Macros

#define LUA_DEBUG_START(luaptr)
 
#define LUA_DEBUG_END(luaptr, expectedStackDiff)
 
#define LUA_DEBUG_CHECK(luaptr, expectedStackDiff)
 

Functions

void pi_lua_settable (lua_State *l, const char *key, bool value)
 
void pi_lua_settable (lua_State *l, const char *key, int value)
 
void pi_lua_settable (lua_State *l, int key, int value)
 
void pi_lua_settable (lua_State *l, const char *key, double value)
 
void pi_lua_settable (lua_State *l, int key, double value)
 
void pi_lua_settable (lua_State *l, int key, const char *value)
 
void pi_lua_settable (lua_State *l, const char *key, const char *value)
 
void pi_lua_open_standard_base (lua_State *l)
 
void pi_lua_readonly_table_proxy (lua_State *l, int index)
 
void pi_lua_readonly_table_original (lua_State *l, int index)
 
bool pi_lua_import (lua_State *l, const std::string &importName, bool popImported=false)
 
void pi_lua_import_recursive (lua_State *L, const std::string &importName)
 
int pi_lua_panic (lua_State *l) __attribute((noreturn))
 
void pi_lua_protected_call (lua_State *state, int nargs, int nresults)
 
int pi_lua_loadfile (lua_State *l, const FileSystem::FileData &code)
 
void pi_lua_dofile (lua_State *l, const std::string &path)
 
void pi_lua_dofile_recursive (lua_State *l, const std::string &basepath)
 
void pi_lua_warn (lua_State *l, const char *format,...) __attribute((format(printf
 
void bool pi_lua_split_table_path (lua_State *l, const std::string &path)
 
int secure_trampoline (lua_State *l)
 
std::string pi_lua_traceback (lua_State *l, int top)
 
std::string pi_lua_dumpstack (lua_State *l, int top)
 
void pi_lua_printvalue (lua_State *l, int idx)
 
void pi_lua_stacktrace (lua_State *l)
 

Macro Definition Documentation

◆ LUA_DEBUG_CHECK

#define LUA_DEBUG_CHECK (   luaptr,
  expectedStackDiff 
)

◆ LUA_DEBUG_END

#define LUA_DEBUG_END (   luaptr,
  expectedStackDiff 
)

◆ LUA_DEBUG_START

#define LUA_DEBUG_START (   luaptr)

Function Documentation

◆ pi_lua_dofile()

void pi_lua_dofile ( lua_State *  l,
const std::string &  path 
)
Here is the call graph for this function:

◆ pi_lua_dofile_recursive()

void pi_lua_dofile_recursive ( lua_State *  l,
const std::string &  basepath 
)
Here is the call graph for this function:

◆ pi_lua_dumpstack()

std::string pi_lua_dumpstack ( lua_State *  l,
int  top 
)

◆ pi_lua_import()

bool pi_lua_import ( lua_State *  l,
const std::string &  importName,
bool  popImported = false 
)
Here is the call graph for this function:

◆ pi_lua_import_recursive()

void pi_lua_import_recursive ( lua_State *  L,
const std::string &  importName 
)
Here is the call graph for this function:

◆ pi_lua_loadfile()

int pi_lua_loadfile ( lua_State *  l,
const FileSystem::FileData code 
)
Here is the call graph for this function:

◆ pi_lua_open_standard_base()

void pi_lua_open_standard_base ( lua_State *  l)
Here is the call graph for this function:

◆ pi_lua_panic()

int pi_lua_panic ( lua_State *  l)
Here is the call graph for this function:

◆ pi_lua_printvalue()

void pi_lua_printvalue ( lua_State *  l,
int  idx 
)
Here is the call graph for this function:

◆ pi_lua_protected_call()

void pi_lua_protected_call ( lua_State *  state,
int  nargs,
int  nresults 
)
Here is the call graph for this function:

◆ pi_lua_readonly_table_original()

void pi_lua_readonly_table_original ( lua_State *  l,
int  index 
)

◆ pi_lua_readonly_table_proxy()

void pi_lua_readonly_table_proxy ( lua_State *  l,
int  index 
)

◆ pi_lua_settable() [1/7]

void pi_lua_settable ( lua_State *  l,
const char *  key,
bool  value 
)
inline

◆ pi_lua_settable() [2/7]

void pi_lua_settable ( lua_State *  l,
const char *  key,
const char *  value 
)
inline

◆ pi_lua_settable() [3/7]

void pi_lua_settable ( lua_State *  l,
const char *  key,
double  value 
)
inline

◆ pi_lua_settable() [4/7]

void pi_lua_settable ( lua_State *  l,
const char *  key,
int  value 
)
inline

◆ pi_lua_settable() [5/7]

void pi_lua_settable ( lua_State *  l,
int  key,
const char *  value 
)
inline

◆ pi_lua_settable() [6/7]

void pi_lua_settable ( lua_State *  l,
int  key,
double  value 
)
inline

◆ pi_lua_settable() [7/7]

void pi_lua_settable ( lua_State *  l,
int  key,
int  value 
)
inline

◆ pi_lua_split_table_path()

void bool pi_lua_split_table_path ( lua_State *  l,
const std::string &  path 
)

◆ pi_lua_stacktrace()

void pi_lua_stacktrace ( lua_State *  l)
Here is the call graph for this function:

◆ pi_lua_traceback()

std::string pi_lua_traceback ( lua_State *  l,
int  top 
)

◆ pi_lua_warn()

void pi_lua_warn ( lua_State *  l,
const char *  format,
  ... 
)

◆ secure_trampoline()

int secure_trampoline ( lua_State *  l)