33 #include "externals/lua/lua.h"
37 #ifndef __H__UG_SCRIPT__INFO_COMMANDS__
38 #define __H__UG_SCRIPT__INFO_COMMANDS__
location name
Definition: checkpoint_util.lua:128
#define UG_API
Definition: ug_config.h:65
struct lua_State lua_State
Definition: lua_table_handle.h:40
bool LuaGetBoolean(lua_State *L, const char *name, bool notAvailable)
returns a boolean to a lua-variable.
Definition: info_commands.cpp:267
string LuaStackTraceString(lua_State *L, int fromLevel, int toLevel)
prints information about lua's call stack (file:line source).
Definition: info_commands.cpp:1094
string LuaCurrentLine(lua_State *L)
Definition: info_commands.cpp:1073
string GetLuaTypeString(lua_State *L, int index)
Definition: info_commands.cpp:1007
string FunctionInfo(lua_State *L, bool bComplete, const char *functionName)
prints out information for a lua function (a function defined in lua script)
Definition: info_commands.cpp:399
string GetLUAScriptFunctionDefined(const char *functionName)
returns file and line of defined script function
Definition: info_commands.cpp:368
int UGTypeInfo(const char *p)
Prints info to a lua type.
Definition: info_commands.cpp:443
void LuaPrintTable(lua_State *L, size_t iSpace, int index)
prints the source of a lua script function which is on top of the stack
Definition: info_commands.cpp:701
const std::vector< const char * > * GetClassNames(lua_State *L, int index)
Definition: info_commands.cpp:337
string LuaGetString(lua_State *L, const char *name, const char *notAvailable)
returns the string to a lua-variable.
Definition: info_commands.cpp:254
void LuaGetLastLine(lua_State *L, lua_Debug entry)
Definition: info_commands.cpp:1058
string LuaGetScriptFunctionString(lua_State *L, int index)
prints the source of a lua script function which is on top of the stack
Definition: info_commands.cpp:680
double LuaGetNumber(lua_State *L, const char *name, double notAvailable)
returns an integer to a lua-variable.
Definition: info_commands.cpp:241
void LuaStackTrace(int fromLevel)
prints information about lua's call stack (file:line source).
Definition: info_commands.cpp:1179
std::string GetLuaFileAndLineNumber(lua_State *L)
returns the current file and line-number
Definition: info_commands.cpp:1154
bool GetLuaNamespace(lua_State *L, string name)
searches for a namespaces (lists) and pushes it onto the stack
Definition: info_commands.cpp:289
bool ClassInstantiations(const char *classname)
this function prints all objects which are of a certain class
Definition: info_commands.cpp:562
bool RegisterInfoCommands(Registry ®, const char *parentGroup)
registers info commands TypeInfo, ClassUsage and others
Definition: info_commands.cpp:1242
std::string GetLuaLine(lua_State *L)
returns the current line-content
Definition: info_commands.cpp:1163
const ClassNameNode * GetClassNameNode(lua_State *L, int index)
Definition: info_commands.cpp:320
bool GetLuaFileAndLine(lua_State *L, std::string &file, size_t &line)
returns the current file and line (
Definition: info_commands.cpp:1123
string LuaClassMethodInfo(lua_State *L, int index, const ExportedMethod &thefunc)
prints out information for a method of a class
Definition: info_commands.cpp:425