Skip to content

Commit

Permalink
webgl也步声明luasocket的接口,否则在高版本的unity会报错
Browse files Browse the repository at this point in the history
  • Loading branch information
chexiongsheng committed Jun 17, 2019
1 parent 0df73c1 commit 4582b8a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Assets/XLua/Src/LuaDLL.cs
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ public static int lua_error(IntPtr L)
[DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)]
public static extern int luaopen_i64lib(IntPtr L);//[,,m]

#if !UNITY_SWITCH || UNITY_EDITOR
#if (!UNITY_SWITCH && !UNITY_WEBGL) || UNITY_EDITOR
[DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)]
public static extern int luaopen_socket_core(IntPtr L);//[,,m]
#endif
Expand Down
2 changes: 1 addition & 1 deletion Assets/XLua/Src/StaticLuaCallbacks.cs
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,7 @@ internal static int Print(RealStatePtr L)
}
#endif

#if !UNITY_SWITCH || UNITY_EDITOR
#if (!UNITY_SWITCH && !UNITY_WEBGL) || UNITY_EDITOR
[MonoPInvokeCallback(typeof(LuaCSFunction))]
internal static int LoadSocketCore(RealStatePtr L)
{
Expand Down

0 comments on commit 4582b8a

Please sign in to comment.