示例#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
        }
示例#2
0
        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
        }