This repository has been archived on 2024-12-16. You can view files and clone it, but cannot push or open issues or pull requests.
CodeBlocksPortable/share/CodeBlocks/templates/wizard/matlab_csf/lccstub/lccstub.c

22 lines
477 B
C

#include <windows.h>
BOOL _stdcall LibMain(HANDLE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved)
{
#ifdef REGISTER_BBEXIT
extern void bbexit(void);
switch( ul_reason_for_call )
{
case DLL_PROCESS_ATTACH:
case DLL_THREAD_ATTACH:
case DLL_THREAD_DETACH:
break;
case DLL_PROCESS_DETACH:
bbexit();
}
#endif /* #ifdef REGISTER_BBEXIT */
return TRUE;
}