Beispiel #1
0
        private static IntPtr SysGetDllProcAddress(IntPtr libHandle, string symbol)
        {
#if UNITY_STANDALONE_WIN
            return(PInvokes_Windows.GetProcAddress(libHandle, symbol));
#elif UNITY_STANDALONE_LINUX
            return(PInvokes_Linux.dlsym(libHandle, symbol));
#elif UNITY_STANDALONE_OSX
            return(PInvokes_Osx.dlsym(libHandle, symbol));
#endif
        }
        private static IntPtr SysGetDllProcAddress(IntPtr libHandle, string symbol)
        {
#if UNITY_STANDALONE_LINUX || UNITY_EDITOR_LINUX
            return(PInvokes_Linux.dlsym(libHandle, symbol));
#elif UNITY_STANDALONE_OSX || UNITY_EDITOR_OSX
            return(PInvokes_Osx.dlsym(libHandle, symbol));
#elif UNITY_STANDALONE_WIN || UNITY_EDITOR_WIN
            return(PInvokes_Windows.GetProcAddress(libHandle, symbol));
#else
            throw GetUnsupportedPlatformExcpetion();
#endif
        }