summaryrefslogtreecommitdiff
path: root/src/scope.rs
AgeCommit message (Collapse)Author
2018-08-05format with up-to-date rustfmtkyren
2018-03-19Small renames and comments to better communicate the intention of stack ↵kyren
checking functions
2018-03-12Fix some bad potential unsafety on inner callback calls.kyren
Since we now optionally use stack spaces for handle values, we have to be mindful of whether our stack handle points to the stack in an outer level of Lua "stack protection". We now keep track of the "recursion level" of Lua instances, and do not allow ref manipulation on "outer" Lua instances until the inner callback has returned. Also, update the documentation to reflect the additional panic behavior.
2018-03-12Documentation improvements, split scope into its own module, improved testskyren
Also makes `Lua` and associated types !UnwindSafe and !RefUnwindSafe, which they should be because they are intensely internally mutable. Lua IS still panic safe, but that doesn't mean it should be marked as UnwindSafe (as I understand it).