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.

22 lines
1.1 KiB

  1. //===== Copyright � 1996-2006, Valve Corporation, All rights reserved. ======//
  2. //
  3. // MUST BE THE FIRST MODULE IN THE LINK PROCESS TO ACHIEVE @1
  4. //
  5. // This is a 360 specific trick to force this import library and the new 360
  6. // link option /AUTODEF to put CreateInterface at @1 (360 lacks named exports) and
  7. // first in sequence. Otherwise, the valve interface techique that does a
  8. // GetProcAddress( @1 ) gets the wrong function pointer. All other exported
  9. // functions can appear in any order, but the oridnals should be autogened sequential.
  10. //===========================================================================//
  11. // explicit definition, including the headers prevents this from occurring @1
  12. #define DLL_EXPORT extern "C" __declspec( dllexport )
  13. DLL_EXPORT void* CreateInterface(const char *pName, int *pReturnCode);
  14. DLL_EXPORT void *CreateInterfaceThunk( const char *pName, int *pReturnCode );
  15. // Should be the first function that the linker 'sees' as an export
  16. void* CreateInterfaceThunk( const char *pName, int *pReturnCode )
  17. {
  18. // descend into the real function
  19. return CreateInterface( pName, pReturnCode );
  20. }