@@ -29,9 +29,9 @@ public class NativeAPI
2929 public static extern IntPtr GetV8FFIApi ( ) ;
3030
3131 [ DllImport ( DLLNAME , CallingConvention = CallingConvention . Cdecl ) ]
32- public static extern IntPtr GetV8PapiEnvRef ( IntPtr isolate ) ;
32+ public static extern IntPtr GetV8PapiEnvRef ( IntPtr isolate ) ;
3333#endif
34-
34+
3535#if ! PUERTS_DISABLE_IL2CPP_OPTIMIZATION && ( PUERTS_IL2CPP_OPTIMIZATION || ! UNITY_IPHONE ) && ENABLE_IL2CPP
3636 [ DllImport ( DLLNAME , CallingConvention = CallingConvention . Cdecl ) ]
3737 public static extern IntPtr GetQjsFFIApi ( ) ;
@@ -174,7 +174,7 @@ public static void SetLogCallback(LogCallback log, LogCallback logWarning, LogCa
174174 public static extern void PreservePuertsCPP ( ) ;
175175#endif
176176#endif
177-
177+ #if ! ENABLE_IL2CPP
178178 [ DllImport ( DLLNAME , CallingConvention = CallingConvention . Cdecl ) ]
179179 public static extern IntPtr pesapi_create_null ( IntPtr apis , IntPtr env ) ;
180180
@@ -415,7 +415,8 @@ public static void SetLogCallback(LogCallback log, LogCallback logWarning, LogCa
415415 public static extern IntPtr pesapi_get_env_private ( IntPtr apis , IntPtr env ) ;
416416
417417 [ DllImport ( DLLNAME , CallingConvention = CallingConvention . Cdecl ) ]
418- public static extern void pesapi_set_env_private ( IntPtr apis , IntPtr env , IntPtr ptr ) ;
418+ public static extern void pesapi_set_env_private ( IntPtr apis , IntPtr env , IntPtr ptr ) ;
419+ #endif
419420 }
420421
421422#if UNITY_EDITOR_WIN || UNITY_STANDALONE_WIN || PUERTS_GENERAL || ( UNITY_WSA && ! UNITY_EDITOR )
0 commit comments