Creates a wrapper around the given lua_state, or creates a new state if the given value is null.
See Implementation
Creates a wrapper around the given lua_state, or creates a new state if the given value is null.