BOOL WINAPI DllMain(HANDLE hinstDLL, DWORD dwReason, LPVOID lpvReserved) { switch (dwReason) { case DLL_PROCESS_ATTACH: backtrace_register(); break; case DLL_PROCESS_DETACH: backtrace_unregister(); break; } return TRUE; }
int main() { #if 1 printf("STASRTUP PU\n"); //LoadLibraryA("backtrace.dll"); backtrace_register(); bar(); backtrace_unregister(); #else printf("gakkgakk\n"); #endif return 0; }
void Sys_BacktraceInit (void) { #ifdef HAVE_BFD_H backtrace_register(); #endif }