Skip to content

Commit

Permalink
[unity]把il2cpp的native接口在标准版里禁用,解决mutl和quickjs下ios编译找不到符号的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
chexiongsheng committed Dec 23, 2024
1 parent f08a0f5 commit cc6189a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions unity/Assets/core/upm/Runtime/Src/IL2Cpp/Native/NativeAPI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public class NativeAPI
#else
const string DLLNAME = "puerts";
#endif
#if PUERTS_IL2CPP_OPTIMIZATION && ENABLE_IL2CPP

[DllImport(DLLNAME, CallingConvention = CallingConvention.Cdecl)]
public static extern IntPtr GetRegsterApi();
Expand All @@ -30,8 +31,6 @@ public class NativeAPI
[DllImport(DLLNAME, CallingConvention = CallingConvention.Cdecl)]
public static extern IntPtr GetPapiEnvRef(IntPtr isolate);

#if PUERTS_IL2CPP_OPTIMIZATION && ENABLE_IL2CPP

[DllImport("__Internal", CallingConvention = CallingConvention.Cdecl)]
public static extern void InitialPuerts(IntPtr PesapiImpl);

Expand Down

0 comments on commit cc6189a

Please sign in to comment.