Source code of Windows XP (NT5)
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.

35 lines
1.3 KiB

  1. // The following ifdef block is the standard way of creating macros which make exporting
  2. // from a DLL simpler. All files within this DLL are compiled with the MYDEBUG_EXPORTS
  3. // symbol defined on the command line. this symbol should not be defined on any project
  4. // that uses this DLL. This way any other project whose source files include this file see
  5. // MYDEBUG_API functions as being imported from a DLL, wheras this DLL sees symbols
  6. // defined with this macro as being exported.
  7. #ifdef MYDEBUG_EXPORTS
  8. #define MYDEBUG_API __declspec(dllexport)
  9. #else
  10. #define MYDEBUG_API __declspec(dllimport)
  11. #endif
  12. #define MYDEBUG_CALLINFOARGS char *file, int line
  13. #define MYDEBUG_CALLINFOPASS file, line
  14. MYDEBUG_API void mydebug_traceInScope(LPCWSTR str, MYDEBUG_CALLINFOARGS);
  15. MYDEBUG_API void mydebug_traceOutScope(MYDEBUG_CALLINFOARGS);
  16. MYDEBUG_API void mydebug_traceString(LPCWSTR str, MYDEBUG_CALLINFOARGS);
  17. MYDEBUG_API void mydebug_traceSection(LPCWSTR str, MYDEBUG_CALLINFOARGS);
  18. MYDEBUG_API void mydebug_traceRegion(LPCWSTR str, HRGN hRgn, MYDEBUG_CALLINFOARGS);
  19. /*
  20. // This class is exported from the mydebug.dll
  21. class MYDEBUG_API CMydebug {
  22. public:
  23. CMydebug(void);
  24. // TODO: add your methods here.
  25. };
  26. extern MYDEBUG_API int nMydebug;
  27. MYDEBUG_API int fnMydebug(void);
  28. */