Leaked source code of windows server 2003
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.

44 lines
1.4 KiB

  1. /****************************************************************************/
  2. /** Microsoft OS/2 LAN Manager **/
  3. /** Copyright(c) Microsoft Corp., 1990 **/
  4. /****************************************************************************/
  5. /****************************************************************************\
  6. *
  7. * GLOBINIT.HXX
  8. * LM 3.0 Netui Global Object Initializer Routines.
  9. *
  10. * This file contains two inline routines that will manually contruct and
  11. * destruct global objects. (Relieving us of the need of the C++
  12. * constructor linker.) The user can call these inline functions inside
  13. * modules with global objects. The user, however, will need to
  14. * put a module independ wrapper around this inline calls so that global
  15. * data can be initialized from a call outside of the module.
  16. *
  17. * In general, it is best to have a single file with global objects in
  18. * it and two routines defined there to contruct and destruct them.
  19. *
  20. * See ui\common\src\cfgfile\cfgfile\globals.cxx for example.
  21. *
  22. *
  23. * FILE HISTORY:
  24. *
  25. * PeterWi 91-Jan-14 Created
  26. *
  27. \****************************************************************************/
  28. #ifndef _GLOBINIT_HXX_
  29. #define _GLOBINIT_HXX_
  30. extern "C"
  31. {
  32. static void _STI();
  33. static void _STD();
  34. };
  35. inline void GlobalObjCt(void) { _STI(); };
  36. inline void GlobalObjDt(void) { _STD(); };
  37. #endif // _GLOBINIT_HXX_