sol2/examples
sjaustirni eebda40507 made "error" accessible in the Lua state
We need to expose `error()` in Lua in order to let it call the error handler function. However, for that the base library needs to be available in the Lua state.
 
Without this fix the output of the program is
`call failed, sol::error::what() is Handled this message: [string "..."]:7: attempt to call a nil value (global 'error')`
while it's supposed to be
`call failed, sol::error::what() is Handled this message: [string "..."]:7: negative number detected`
2017-04-20 20:17:06 -04:00
..
any_return.cpp New feature: environment plus documentation about the environment table and its usage with scripts. 2017-04-02 16:10:00 -04:00
basic.cpp New feature: environment plus documentation about the environment table and its usage with scripts. 2017-04-02 16:10:00 -04:00
config.cpp New feature: environment plus documentation about the environment table and its usage with scripts. 2017-04-02 16:10:00 -04:00
config.lua Add basic examples directory 2013-12-16 11:17:33 -05:00
containers_as_table.cpp New feature: nested getter for complex nested tables, plus docs and example 2017-03-30 14:11:43 -04:00
containers.cpp sigh, Lua 5.1 2017-03-30 04:20:09 -04:00
coroutine.cpp New feature: environment plus documentation about the environment table and its usage with scripts. 2017-04-02 16:10:00 -04:00
customization.cpp New feature: environment plus documentation about the environment table and its usage with scripts. 2017-04-02 16:10:00 -04:00
environments_on_functions.cpp get_environment, documentation updates, and tests 2017-04-18 20:23:20 -04:00
environments.cpp new travis environments to be tested out for osx stuff, plus new_table docs and environments on function calls 2017-04-02 22:37:01 -04:00
functions.cpp New feature: environment plus documentation about the environment table and its usage with scripts. 2017-04-02 16:10:00 -04:00
namespacing.cpp New feature: environment plus documentation about the environment table and its usage with scripts. 2017-04-02 16:10:00 -04:00
optional_with_iteration.cpp New feature: environment plus documentation about the environment table and its usage with scripts. 2017-04-02 16:10:00 -04:00
player_script.lua update examples, support inherited usertype metatables, and beef up wording and fix other crap in docs 2016-08-10 20:39:30 -04:00
protected_functions.cpp made "error" accessible in the Lua state 2017-04-20 20:17:06 -04:00
require.cpp New feature: environment plus documentation about the environment table and its usage with scripts. 2017-04-02 16:10:00 -04:00
script_error_handling.cpp unused variable warnings 2017-04-03 08:19:16 -04:00
self_call.cpp New feature: environment plus documentation about the environment table and its usage with scripts. 2017-04-02 16:10:00 -04:00
static_variables.cpp New feature: environment plus documentation about the environment table and its usage with scripts. 2017-04-02 16:10:00 -04:00
tables.cpp New feature: environment plus documentation about the environment table and its usage with scripts. 2017-04-02 16:10:00 -04:00
usertype_advanced.cpp New feature: environment plus documentation about the environment table and its usage with scripts. 2017-04-02 16:10:00 -04:00
usertype_bitfields.cpp silence some crap warnings and fix the inversion of the branches in the usertype metatable because I'm a dumb 2017-03-16 03:36:15 -04:00
usertype_initializers.cpp New feature: environment plus documentation about the environment table and its usage with scripts. 2017-04-02 16:10:00 -04:00
usertype_simple.cpp New feature: environment plus documentation about the environment table and its usage with scripts. 2017-04-02 16:10:00 -04:00
usertype_special_functions.cpp New feature: environment plus documentation about the environment table and its usage with scripts. 2017-04-02 16:10:00 -04:00
usertype_var.cpp New feature: environment plus documentation about the environment table and its usage with scripts. 2017-04-02 16:10:00 -04:00
usertype.cpp New feature: environment plus documentation about the environment table and its usage with scripts. 2017-04-02 16:10:00 -04:00
variables.cpp New feature: environment plus documentation about the environment table and its usage with scripts. 2017-04-02 16:10:00 -04:00
variadic_args.cpp New feature: environment plus documentation about the environment table and its usage with scripts. 2017-04-02 16:10:00 -04:00