Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
1.1 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //
  7. //=============================================================================//
  8. /*
  9. ===== h_export.cpp ========================================================
  10. Entity classes exported by Halflife.
  11. */
  12. #if defined(_WIN32)
  13. #include "winlite.h"
  14. #include "datamap.h"
  15. #include "tier0/dbg.h"
  16. // memdbgon must be the last include file in a .cpp file!!!
  17. #include "tier0/memdbgon.h"
  18. HMODULE win32DLLHandle;
  19. // Required DLL entry point
  20. BOOL WINAPI DllMain( HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved )
  21. {
  22. // ensure data sizes are stable
  23. if ( IsPlatformWindowsPC32() && sizeof( inputfunc_t ) != sizeof( int ) ||
  24. IsPlatformWindowsPC64() && sizeof( inputfunc_t ) != sizeof( void* ) )
  25. {
  26. Assert( !IsPlatformWindowsPC32() || sizeof( inputfunc_t ) == sizeof( int ) );
  27. Assert( !IsPlatformWindowsPC64() || sizeof( inputfunc_t ) == sizeof( void* ) );
  28. return FALSE;
  29. }
  30. if ( fdwReason == DLL_PROCESS_ATTACH )
  31. {
  32. win32DLLHandle = hinstDLL;
  33. }
  34. else if ( fdwReason == DLL_PROCESS_DETACH )
  35. {
  36. }
  37. return TRUE;
  38. }
  39. #endif