Commit Graph

7 Commits

Author SHA1 Message Date
kyren 9e3374ff9e lua_abort / lua_internal_abort macros 2018-02-10 17:49:54 -05:00
kyren 164250b352 Don't panic with "rlua internal error" message on panics that are not internal
It is part of the contract that only LuaRef types constructed from the same
parent Lua state are passed into Lua, so generating a panic there is not an
internal error.
2018-02-07 17:05:00 -05:00
kyren 66a4e9a8e7 Add `ExpiredUserData` error and avoid what was previously a panic
Also make sure that panic messages clearly state that they are internal errors,
so people report them as a bug.  Since the only panics left are all internal
errors, just move the internal error message into the panic / assert macros.
2017-12-04 02:50:27 -05:00
kyren f51a822738 auto-formatting 2017-12-02 18:56:14 -05:00
kyren fa1703d3d1 split macros into their own file 2017-12-02 17:04:33 -05:00
Jonas Schievink 5019396bd7 Remove src/macros.rs
It's not used by anything. It's not even included via `mod macros;`.
2017-06-14 01:24:38 +02:00
kyren 065c69894a Initial import 2017-05-21 19:50:59 -04:00