ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

crtdbg.h
Go to the documentation of this file.
00001 
00006 #include <crtdefs.h>
00007 
00008 #ifndef _INC_CRTDBG
00009 #define _INC_CRTDBG
00010 
00011 #pragma pack(push,_CRT_PACKING)
00012 
00013 #ifndef NULL
00014 #ifdef __cplusplus
00015 #define NULL 0
00016 #else
00017 #define NULL ((void *)0)
00018 #endif
00019 #endif
00020 
00021 #ifdef __cplusplus
00022 extern "C" {
00023 #endif
00024 
00025   typedef void *_HFILE;
00026 
00027 #define _CRT_WARN 0
00028 #define _CRT_ERROR 1
00029 #define _CRT_ASSERT 2
00030 #define _CRT_ERRCNT 3
00031 
00032 #define _CRTDBG_MODE_FILE 0x1
00033 #define _CRTDBG_MODE_DEBUG 0x2
00034 #define _CRTDBG_MODE_WNDW 0x4
00035 #define _CRTDBG_REPORT_MODE -1
00036 
00037 #define _CRTDBG_INVALID_HFILE ((_HFILE)-1)
00038 #define _CRTDBG_HFILE_ERROR ((_HFILE)-2)
00039 #define _CRTDBG_FILE_STDOUT ((_HFILE)-4)
00040 #define _CRTDBG_FILE_STDERR ((_HFILE)-5)
00041 #define _CRTDBG_REPORT_FILE ((_HFILE)-6)
00042 
00043   typedef int (__cdecl *_CRT_REPORT_HOOK)(int,char *,int *);
00044   typedef int (__cdecl *_CRT_REPORT_HOOKW)(int,wchar_t *,int *);
00045 
00046 #define _CRT_RPTHOOK_INSTALL 0
00047 #define _CRT_RPTHOOK_REMOVE 1
00048 
00049 #define _HOOK_ALLOC 1
00050 #define _HOOK_REALLOC 2
00051 #define _HOOK_FREE 3
00052 
00053   typedef int (__cdecl *_CRT_ALLOC_HOOK)(int,void *,size_t,int,long,const unsigned char *,int);
00054 
00055 #define _CRTDBG_ALLOC_MEM_DF 0x01
00056 #define _CRTDBG_DELAY_FREE_MEM_DF 0x02
00057 #define _CRTDBG_CHECK_ALWAYS_DF 0x04
00058 #define _CRTDBG_RESERVED_DF 0x08
00059 #define _CRTDBG_CHECK_CRT_DF 0x10
00060 #define _CRTDBG_LEAK_CHECK_DF 0x20
00061 
00062 #define _CRTDBG_CHECK_EVERY_16_DF 0x00100000
00063 #define _CRTDBG_CHECK_EVERY_128_DF 0x00800000
00064 #define _CRTDBG_CHECK_EVERY_1024_DF 0x04000000
00065 
00066 #define _CRTDBG_CHECK_DEFAULT_DF 0
00067 
00068 #define _CRTDBG_REPORT_FLAG -1
00069 
00070 #define _BLOCK_TYPE(block) (block & 0xFFFF)
00071 #define _BLOCK_SUBTYPE(block) (block >> 16 & 0xFFFF)
00072 
00073 #define _FREE_BLOCK 0
00074 #define _NORMAL_BLOCK 1
00075 #define _CRT_BLOCK 2
00076 #define _IGNORE_BLOCK 3
00077 #define _CLIENT_BLOCK 4
00078 #define _MAX_BLOCKS 5
00079 
00080   typedef void (__cdecl *_CRT_DUMP_CLIENT)(void *,size_t);
00081 
00082   struct _CrtMemBlockHeader;
00083 
00084   typedef struct _CrtMemState {
00085     struct _CrtMemBlockHeader *pBlockHeader;
00086     size_t lCounts[_MAX_BLOCKS];
00087     size_t lSizes[_MAX_BLOCKS];
00088     size_t lHighWaterCount;
00089     size_t lTotalCount;
00090   } _CrtMemState;
00091 
00092 #ifndef _STATIC_ASSERT
00093 #define _STATIC_ASSERT(expr) extern char (*static_assert(void)) [(expr) ? 1 : -1]
00094 #endif
00095 
00096 #ifndef _ASSERT
00097 #define _ASSERT(expr) ((void)0)
00098 #endif
00099 
00100 #ifndef _ASSERT_WRN
00101 #define _ASSERT_WRN(expr) ((void)0)
00102 #endif
00103 
00104 #ifndef _ASSERTE
00105 #define _ASSERTE(expr) ((void)0)
00106 #endif
00107 
00108 #ifndef _ASSERTE_WRN
00109 #define _ASSERTE_WRN(expr) ((void)0)
00110 #endif
00111 
00112 #ifndef _ASSERT_EXPR
00113 #define _ASSERT_EXPR(expr,expr_str) ((void)0)
00114 #endif
00115 
00116 #ifndef _ASSERT_EXPR_WRN
00117 #define _ASSERT_EXPR_WRN(expr,expr_str) ((void)0)
00118 #endif
00119 
00120 #ifndef _ASSERT_BASE
00121 #define _ASSERT_BASE _ASSERT_EXPR
00122 #endif
00123 
00124 #define _RPT0(rptno,msg)
00125 #define _RPTW0(rptno,msg)
00126 
00127 #define _RPT1(rptno,msg,arg1)
00128 #define _RPTW1(rptno,msg,arg1)
00129 #define _RPT2(rptno,msg,arg1,arg2)
00130 #define _RPTW2(rptno,msg,arg1,arg2)
00131 #define _RPT3(rptno,msg,arg1,arg2,arg3)
00132 #define _RPTW3(rptno,msg,arg1,arg2,arg3)
00133 #define _RPT4(rptno,msg,arg1,arg2,arg3,arg4)
00134 #define _RPTW4(rptno,msg,arg1,arg2,arg3,arg4)
00135 #define _RPTF0(rptno,msg)
00136 #define _RPTFW0(rptno,msg)
00137 #define _RPTF1(rptno,msg,arg1)
00138 #define _RPTFW1(rptno,msg,arg1)
00139 #define _RPTF2(rptno,msg,arg1,arg2)
00140 #define _RPTFW2(rptno,msg,arg1,arg2)
00141 #define _RPTF3(rptno,msg,arg1,arg2,arg3)
00142 #define _RPTFW3(rptno,msg,arg1,arg2,arg3)
00143 #define _RPTF4(rptno,msg,arg1,arg2,arg3,arg4)
00144 #define _RPTFW4(rptno,msg,arg1,arg2,arg3,arg4)
00145 
00146 #define _malloc_dbg(s,t,f,l) malloc(s)
00147 #define _calloc_dbg(c,s,t,f,l) calloc(c,s)
00148 #define _realloc_dbg(p,s,t,f,l) realloc(p,s)
00149 #define _recalloc_dbg(p,c,s,t,f,l) _recalloc(p,c,s)
00150 #define _expand_dbg(p,s,t,f,l) _expand(p,s)
00151 #define _free_dbg(p,t) free(p)
00152 #define _msize_dbg(p,t) _msize(p)
00153 
00154 #define _aligned_malloc_dbg(s,a,f,l) _aligned_malloc(s,a)
00155 #define _aligned_realloc_dbg(p,s,a,f,l) _aligned_realloc(p,s,a)
00156 #define _aligned_recalloc_dbg(p,c,s,a,f,l) _aligned_realloc(p,c,s,a)
00157 #define _aligned_free_dbg(p) _aligned_free(p)
00158 #define _aligned_offset_malloc_dbg(s,a,o,f,l) _aligned_offset_malloc(s,a,o)
00159 #define _aligned_offset_realloc_dbg(p,s,a,o,f,l) _aligned_offset_realloc(p,s,a,o)
00160 #define _aligned_offset_recalloc_dbg(p,c,s,a,o,f,l) _aligned_offset_recalloc(p,c,s,a,o)
00161 
00162 #define _malloca_dbg(s,t,f,l) _malloca(s)
00163 #define _freea_dbg(p,t) _freea(p)
00164 
00165 #define _strdup_dbg(s,t,f,l) _strdup(s)
00166 #define _wcsdup_dbg(s,t,f,l) _wcsdup(s)
00167 #define _mbsdup_dbg(s,t,f,l) _mbsdup(s)
00168 #define _tempnam_dbg(s1,s2,t,f,l) _tempnam(s1,s2)
00169 #define _wtempnam_dbg(s1,s2,t,f,l) _wtempnam(s1,s2)
00170 #define _fullpath_dbg(s1,s2,le,t,f,l) _fullpath(s1,s2,le)
00171 #define _wfullpath_dbg(s1,s2,le,t,f,l) _wfullpath(s1,s2,le)
00172 #define _getcwd_dbg(s,le,t,f,l) _getcwd(s,le)
00173 #define _wgetcwd_dbg(s,le,t,f,l) _wgetcwd(s,le)
00174 #define _getdcwd_dbg(d,s,le,t,f,l) _getdcwd(d,s,le)
00175 #define _wgetdcwd_dbg(d,s,le,t,f,l) _wgetdcwd(d,s,le)
00176 #define _getdcwd_lk_dbg(d,s,le,t,f,l) _getdcwd_nolock(d,s,le)
00177 #define _wgetdcwd_lk_dbg(d,s,le,t,f,l) _wgetdcwd_nolock(d,s,le)
00178 
00179 #define _CrtSetReportHook(f) ((_CRT_REPORT_HOOK)0)
00180 #define _CrtGetReportHook() ((_CRT_REPORT_HOOK)0)
00181 #define _CrtSetReportHook2(t,f) ((int)0)
00182 #define _CrtSetReportHookW2(t,f) ((int)0)
00183 #define _CrtSetReportMode(t,f) ((int)0)
00184 #define _CrtSetReportFile(t,f) ((_HFILE)0)
00185 
00186 #define _CrtDbgBreak() ((void)0)
00187 
00188 #define _CrtSetBreakAlloc(a) ((long)0)
00189 #define _CrtSetAllocHook(f) ((_CRT_ALLOC_HOOK)0)
00190 #define _CrtGetAllocHook() ((_CRT_ALLOC_HOOK)0)
00191 #define _CrtCheckMemory() ((int)1)
00192 #define _CrtSetDbgFlag(f) ((int)0)
00193 #define _CrtDoForAllClientObjects(f,c) ((void)0)
00194 #define _CrtIsValidPointer(p,n,r) ((int)1)
00195 #define _CrtIsValidHeapPointer(p) ((int)1)
00196 #define _CrtIsMemoryBlock(p,t,r,f,l) ((int)1)
00197 #define _CrtReportBlockType(p) ((int)-1)
00198 #define _CrtSetDumpClient(f) ((_CRT_DUMP_CLIENT)0)
00199 #define _CrtGetDumpClient() ((_CRT_DUMP_CLIENT)0)
00200 #define _CrtMemCheckpoint(s) ((void)0)
00201 #define _CrtMemDifference(s1,s2,s3) ((int)0)
00202 #define _CrtMemDumpAllObjectsSince(s) ((void)0)
00203 #define _CrtMemDumpStatistics(s) ((void)0)
00204 #define _CrtDumpMemoryLeaks() ((int)0)
00205 #define _CrtSetDebugFillThreshold(t) ((size_t)0)
00206 #define _CrtSetCheckCount(f) ((int)0)
00207 #define _CrtGetCheckCount() ((int)0)
00208 
00209 #ifdef __cplusplus
00210 }
00211 
00212   void *__cdecl operator new[](size_t _Size);
00213   inline void *__cdecl operator new(size_t _Size,int,const char *,int) { return ::operator new(_Size); }
00214   inline void *__cdecl operator new[](size_t _Size,int,const char *,int) { return ::operator new[](_Size); }
00215   void __cdecl operator delete[](void *);
00216   inline void __cdecl operator delete(void *_P,int,const char *,int) { ::operator delete(_P); }
00217   inline void __cdecl operator delete[](void *_P,int,const char *,int) { ::operator delete[](_P); }
00218 #endif
00219 
00220 #pragma pack(pop)
00221 
00222 #include <sec_api/crtdbg_s.h>
00223 
00224 #endif

Generated on Sun May 27 2012 04:29:51 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.