Functions | |
| static bool | is_available (lutok::state &state, const char *symbol) |
| Checks if a symbol is available. | |
| static void | check_modules (lutok::state &state, const std::string &expected) |
| Checks that no modules are present or that only one has been loaded. | |
| static int | c_get_upvalues (lua_State *raw_state) |
| A C closure that returns its two integral upvalues. | |
| static int | cxx_multiply_closure (lutok::state &state) |
| A custom C++ multiply function with one of its factors on its closure. | |
| static int | cxx_divide (lutok::state &state) |
| A custom C++ integral division function for Lua. | |
| static int | raise_long_error (lutok::state &state) |
| A Lua function that raises a very long error message. | |
| static int anonymous_namespace{state_test.cpp}::c_get_upvalues | ( | lua_State * | raw_state | ) | [static] |
A C closure that returns its two integral upvalues.
| raw_state | The raw Lua state. |
| static void anonymous_namespace{state_test.cpp}::check_modules | ( | lutok::state & | state, |
| const std::string & | expected | ||
| ) | [static] |
Checks that no modules are present or that only one has been loaded.
| state | The Lua state. |
| expected | The module to expect. Empty if no modules are allowed. |
| static int anonymous_namespace{state_test.cpp}::cxx_divide | ( | lutok::state & | state | ) | [static] |
A custom C++ integral division function for Lua.
| state | The Lua state. |
| std::runtime_error | If the divisor is zero. |
| std::string | If the dividend or the divisor are negative. This is an exception not derived from std::exception on purpose to ensure that the C++ wrapping correctly captures any exception regardless of its type. |
| static int anonymous_namespace{state_test.cpp}::cxx_multiply_closure | ( | lutok::state & | state | ) | [static] |
A custom C++ multiply function with one of its factors on its closure.
| state | The Lua state. |
| static bool anonymous_namespace{state_test.cpp}::is_available | ( | lutok::state & | state, |
| const char * | symbol | ||
| ) | [static] |
Checks if a symbol is available.
| state | The Lua state. |
| symbol | The symbol to check for. |
| static int anonymous_namespace{state_test.cpp}::raise_long_error | ( | lutok::state & | state | ) | [static] |
A Lua function that raises a very long error message.
| state | The Lua state. |
| std::runtime_error | Unconditionally, with an error message formed by the repetition of 'A' as many times as requested. |
1.8.0