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

cmddbg.h
Go to the documentation of this file.
00001 #ifdef _DEBUG_MEM
00002 
00003 #define cmd_alloc(size) cmd_alloc_dbg(size, __FILE__, __LINE__)
00004 #define cmd_realloc(ptr,size) cmd_realloc_dbg(ptr, size, __FILE__, __LINE__)
00005 #define cmd_free(ptr) cmd_free_dbg(ptr, __FILE__, __LINE__)
00006 #define cmd_checkbuffer(ptr) cmd_checkbuffer_dbg(ptr, __FILE__, __LINE__)
00007 #define cmd_dup(str) cmd_dup_dbg(str, __FILE__, __LINE__)
00008 
00009 void *
00010 cmd_alloc_dbg(size_t size, const char *file, int line);
00011 
00012 void *
00013 cmd_realloc_dbg(void *ptr, size_t size, const char *file, int line);
00014 
00015 void
00016 cmd_free_dbg(void *ptr, const char *file, int line);
00017 
00018 TCHAR *
00019 cmd_dup_dbg(const TCHAR *str, const char *file, int line);
00020 
00021 void
00022 cmd_checkbuffer_dbg(void *ptr, const char *file, int line);
00023 
00024 void
00025 cmd_exit(int code);
00026 
00027 #else
00028 
00029 #define cmd_alloc(size) malloc(size)
00030 #define cmd_realloc(ptr,size) realloc(ptr, size)
00031 #define cmd_free(ptr) free(ptr)
00032 #define cmd_dup(str) _tcsdup(str)
00033 #define cmd_checkbuffer(ptr)
00034 #define cmd_exit(code) ExitProcess(code)
00035 
00036 #endif

Generated on Mon May 28 2012 04:17:58 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.