From 4582b8a6441c52e5790ccc45a32205521958ff57 Mon Sep 17 00:00:00 2001 From: johnche Date: Mon, 17 Jun 2019 17:35:20 +0800 Subject: [PATCH] =?UTF-8?q?webgl=E4=B9=9F=E6=AD=A5=E5=A3=B0=E6=98=8Eluasoc?= =?UTF-8?q?ket=E7=9A=84=E6=8E=A5=E5=8F=A3=EF=BC=8C=E5=90=A6=E5=88=99?= =?UTF-8?q?=E5=9C=A8=E9=AB=98=E7=89=88=E6=9C=AC=E7=9A=84unity=E4=BC=9A?= =?UTF-8?q?=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/XLua/Src/LuaDLL.cs | 2 +- Assets/XLua/Src/StaticLuaCallbacks.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/XLua/Src/LuaDLL.cs b/Assets/XLua/Src/LuaDLL.cs index c6f0b937f..f9a2981d9 100644 --- a/Assets/XLua/Src/LuaDLL.cs +++ b/Assets/XLua/Src/LuaDLL.cs @@ -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 diff --git a/Assets/XLua/Src/StaticLuaCallbacks.cs b/Assets/XLua/Src/StaticLuaCallbacks.cs index 9696a42c9..6f3c4c156 100644 --- a/Assets/XLua/Src/StaticLuaCallbacks.cs +++ b/Assets/XLua/Src/StaticLuaCallbacks.cs @@ -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) {