Skip to content

Commit 4f93e18

Browse files
committed
更新tolua#到1.0.7.367版
1 parent ca2e8af commit 4f93e18

35 files changed

Lines changed: 56 additions & 50 deletions

File tree

Assets/LuaFramework/ToLua/Core/LuaDLL.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ public string short_src
187187

188188
public class LuaDLL
189189
{
190-
public static string version = "1.0.7.358";
190+
public static string version = "1.0.7.364";
191191
public static int LUA_MULTRET = -1;
192192
public static string[] LuaTypeName = { "none", "nil", "boolean", "lightuserdata", "number", "string", "table", "function", "userdata", "thread" };
193193

Assets/LuaFramework/ToLua/Core/ToLua.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1026,6 +1026,10 @@ static public Type CheckMonoType(IntPtr L, int stackPos)
10261026

10271027
return null;
10281028
}
1029+
else if (LuaDLL.lua_isnil(L, stackPos))
1030+
{
1031+
return null;
1032+
}
10291033

10301034
LuaDLL.luaL_typerror(L, stackPos, "Type");
10311035
return null;
@@ -1052,6 +1056,10 @@ public static IEnumerator CheckIter(IntPtr L, int stackPos)
10521056

10531057
return null;
10541058
}
1059+
else if (LuaDLL.lua_isnil(L, stackPos))
1060+
{
1061+
return null;
1062+
}
10551063

10561064
LuaDLL.luaL_typerror(L, stackPos, "Type");
10571065
return null;
-7.74 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
-7.76 KB
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)