Chi-Tech
|
#include <lua.h>
#include <lualib.h>
#include <lauxlib.h>
#include "chi_console_structs.h"
#include "parameters/parameter_block.h"
#include "parameters/input_parameters.h"
#include "chi_log_exceptions.h"
#include <vector>
#include <string>
#include <map>
#include <stack>
Go to the source code of this file.
Data Structures | |
class | chi::Console |
struct | chi::Console::LuaFunctionRegistryEntry |
struct | chi::Console::LuaFuncWrapperRegEntry |
Namespaces | |
namespace | chi_physics |
namespace | chi |
Macros | |
#define | ConsoleJoinWordsA(x, y) x##y |
#define | ConsoleJoinWordsB(x, y) ConsoleJoinWordsA(x, y) |
#define | RegisterLuaFunctionAsIs(func_name) |
#define | RegisterLuaFunction(function, namespace_name, func_name) |
#define | RegisterWrapperFunction( namespace_name, name_in_lua, syntax_function, actual_function) |
#define | RegisterLuaConstant(namespace_name, name_in_lua, value) |
#define | RegisterLuaConstantAsIs(name_in_lua, value) |
#define ConsoleJoinWordsA | ( | x, | |
y | |||
) | x##y |
Small utility macro for joining two words.
Definition at line 24 of file chi_console.h.
#define ConsoleJoinWordsB | ( | x, | |
y | |||
) | ConsoleJoinWordsA(x, y) |
IDK why this is needed. Seems like counter doesnt work properly without it
Definition at line 26 of file chi_console.h.
#define RegisterLuaConstant | ( | namespace_name, | |
name_in_lua, | |||
value | |||
) |
Definition at line 63 of file chi_console.h.
#define RegisterLuaConstantAsIs | ( | name_in_lua, | |
value | |||
) |
Definition at line 69 of file chi_console.h.
#define RegisterLuaFunction | ( | function, | |
namespace_name, | |||
func_name | |||
) |
Macro for registering a lua_CFunction within the Console singleton.
function | LuaCFunction. The function to use. |
namespace_name | NonQuotedString. May include scope resolution |
func_name | NonQuotedString. The name of the function as it will appear in the lua console. |
Definition at line 50 of file chi_console.h.
#define RegisterLuaFunctionAsIs | ( | func_name | ) |
Macro for registering a lua_CFunction within the Console singleton, with the function being in the global namespace. Example:
Definition at line 37 of file chi_console.h.
#define RegisterWrapperFunction | ( | namespace_name, | |
name_in_lua, | |||
syntax_function, | |||
actual_function | |||
) |
Definition at line 56 of file chi_console.h.