/* * ======================================================== * * hCore * Copyright Mahrouss Logic, all rights reserved. * * ======================================================== */ #include #include #include #include using namespace hCore; /***********************************************************************************/ extern "C" SharedObject* __LibMain(VoidPtr image) { /***********************************************************************************/ /* Allocate new library to be added to the lookup table. */ /***********************************************************************************/ SharedObject* library = hcore_tls_new_class(); if (!library) { kcout << "__LibMain: out of memory!\n"; ProcessManager::Shared().Leak().GetCurrent().Leak().Crash(); return nullptr; } library->Mount(hcore_tls_new_class()); kcout << "__LibMain: Done allocate DSO.\n"; return library; } /***********************************************************************************/