mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
we choose nil serialization for bad stack pushes
This commit is contained in:
parent
7bef50d460
commit
20b951d551
@ -20,8 +20,8 @@
|
|||||||
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
// This file was generated with a script.
|
// This file was generated with a script.
|
||||||
// Generated 2016-11-29 17:51:31.281770 UTC
|
// Generated 2016-12-02 10:47:03.358052 UTC
|
||||||
// This header was generated with sol v2.15.3 (revision 0d43a6f)
|
// This header was generated with sol v2.15.3 (revision 7bef50d)
|
||||||
// https://github.com/ThePhD/sol2
|
// https://github.com/ThePhD/sol2
|
||||||
|
|
||||||
#ifndef SOL_SINGLE_INCLUDE_HPP
|
#ifndef SOL_SINGLE_INCLUDE_HPP
|
||||||
@ -6249,6 +6249,8 @@ namespace sol {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static int push(lua_State* L, const char* str) {
|
static int push(lua_State* L, const char* str) {
|
||||||
|
if (str == nullptr)
|
||||||
|
return stack::push(L, nil);
|
||||||
return push_sized(L, str, std::char_traits<char>::length(str));
|
return push_sized(L, str, std::char_traits<char>::length(str));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -415,6 +415,8 @@ namespace sol {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static int push(lua_State* L, const char* str) {
|
static int push(lua_State* L, const char* str) {
|
||||||
|
if (str == nullptr)
|
||||||
|
return stack::push(L, nil);
|
||||||
return push_sized(L, str, std::char_traits<char>::length(str));
|
return push_sized(L, str, std::char_traits<char>::length(str));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user