diff options
| author | Li Jin <dragon-fly@qq.com> | 2021-08-17 23:09:27 +0800 |
|---|---|---|
| committer | Li Jin <dragon-fly@qq.com> | 2021-08-17 23:09:27 +0800 |
| commit | 38908616d0e08b72e6b00d18490ed917fa643e4f (patch) | |
| tree | 4311b80a505f4c3819c8cb2c3c937296fef0356f /src/3rdParty/lua/lauxlib.c | |
| parent | 792e942f5269655ee03c48400999f3604b84396c (diff) | |
| download | yuescript-38908616d0e08b72e6b00d18490ed917fa643e4f.tar.gz yuescript-38908616d0e08b72e6b00d18490ed917fa643e4f.tar.bz2 yuescript-38908616d0e08b72e6b00d18490ed917fa643e4f.zip | |
reset Yuescript version since it's a minor version with new feature. update Lua lib.
Diffstat (limited to 'src/3rdParty/lua/lauxlib.c')
| -rw-r--r-- | src/3rdParty/lua/lauxlib.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/3rdParty/lua/lauxlib.c b/src/3rdParty/lua/lauxlib.c index 94835ef..8ed1da1 100644 --- a/src/3rdParty/lua/lauxlib.c +++ b/src/3rdParty/lua/lauxlib.c | |||
| @@ -881,6 +881,7 @@ LUALIB_API lua_Integer luaL_len (lua_State *L, int idx) { | |||
| 881 | 881 | ||
| 882 | 882 | ||
| 883 | LUALIB_API const char *luaL_tolstring (lua_State *L, int idx, size_t *len) { | 883 | LUALIB_API const char *luaL_tolstring (lua_State *L, int idx, size_t *len) { |
| 884 | idx = lua_absindex(L,idx); | ||
| 884 | if (luaL_callmeta(L, idx, "__tostring")) { /* metafield? */ | 885 | if (luaL_callmeta(L, idx, "__tostring")) { /* metafield? */ |
| 885 | if (!lua_isstring(L, -1)) | 886 | if (!lua_isstring(L, -1)) |
| 886 | luaL_error(L, "'__tostring' must return a string"); | 887 | luaL_error(L, "'__tostring' must return a string"); |
