[PR]

水無瀬の部屋 > Programming > sample > tools > header > dbgalloc.h
最終更新日: 2007/03/03

   1: //*********************************************************
   2: // プロジェクト: TOOLS
   3: //  ファイル名: dbgalloc.h
   4: //*********************************************************
   5: #if !defined(IN_DEBUG_HEAD) && !defined(IN_DEBUG_CPP) // tooldbg.h 経由で使用
   6: #error "#include <header/dbgalloc.h> => #include <header/tooldbg.h>"
   7: #endif  // #if !defined(IN_DEBUG_HEAD) && !defined(IN_DEBUG_CPP)
   8: 
   9: 
  10: #ifndef DEBUGALLOC_HEAD_INCLUDED // 多重インクルードの防止
  11: #define DEBUGALLOC_HEAD_INCLUDED
  12: #ifdef _DEBUG // デバッグ時のみ
  13: 
  14: 
  15: //*********************************************************
  16: // コンパイル環境の指定
  17: //*********************************************************
  18: #ifndef PRIVATE_TOOLS_HEAD_INCLUDED // 冗長ガード
  19: #include <header/_tools.h>
  20: #ifndef PRIVATE_TOOLS_HEAD_INCLUDED // ガード名の検査
  21: #error "? PRIVATE_TOOLS_HEAD_INCLUDED"
  22: #endif // #ifndef PRIVATE_TOOLS_HEAD_INCLUDED
  23: #endif // #ifndef PRIVATE_TOOLS_HEAD_INCLUDED
  24: 
  25: 
  26: //*********************************************************
  27: // 関数 の 宣言
  28: //*********************************************************
  29: #ifdef __cplusplus
  30: extern "C" {
  31: #endif
  32: 
  33: 
  34: // dbgalloc.cpp
  35: void *_my_malloc( size_t size, const char *filename, int line );
  36: void  _my_free( void *p, const char *filename, int line );
  37: void *_my_realloc( void *p, size_t size, const char *filename, int line );
  38: void  _dbg_lock_ptr( void *p, const char *name, const char *filename, int line );
  39: void  _dbg_unlock_ptr( void *p, const char *name, const char *filename, int line );
  40: 
  41: 
  42: #ifdef __cplusplus
  43: } // extern "C"
  44: #endif
  45: 
  46: 
  47: #endif // #ifdef _DEBUG
  48: #endif // #ifndef DEBUGALLOC_HEAD_INCLUDED
  49: 
  50: 
  51: //** end **
  52: 

参照: tooldbg.h


Google
ご意見・ご感想をお聞かせ下さい。匿名で送信できます。

 * 返信が必要な場合には postmaster@katsura-kotonoha.sakura.ne.jp へ直接メールしてください。

水無瀬の部屋 > sample > tools > header > dbgalloc.h

このページは cpp2web が出力しました。
水無瀬 優 postmaster@katsura-kotonoha.sakura.ne.jp
http://katsura-kotonoha.sakura.ne.jp/prog/code/tools/header/dbgalloc_h.shtml
『新妻LOVELY×CATION』を応援しています!