DLLEXPORT FX_BOOL STDCALL FSDK_SetOOMHandler(OOM_INFO* oomInfo) { #ifndef _FXSDK_OPENSOURCE_ if (!oomInfo || oomInfo->version!=1) return FALSE; FXMEM_SetOOMHandler(FXMEM_GetDefaultMgr(),OOM_Handler,oomInfo); return TRUE; #else return TRUE; #endif }
DLLEXPORT void STDCALL FPDF_DestroyLibrary() { #if _FX_OS_ == _FX_LINUX_EMBEDDED_ if (g_pFontMapper) delete g_pFontMapper; #endif #ifdef API5 g_pModuleMgr->Destroy(); #else CPDF_ModuleMgr::Destroy(); CFX_GEModule::Destroy(); g_pCodecModule->Destroy(); #endif #ifndef _FXSDK_OPENSOURCE_ FXMEM_CollectAll(FXMEM_GetDefaultMgr()); #else #endif }