2004-06-16から1日間の記事一覧
以下のクラスを使用するだけで、関数呼び出しのツリーを出力できることに気付いた。 #if defined DEBUG # define __FUNCTION_TRACER(s) FunctionTracer __function_tracer(s) #else # define __FUNCTION_TRACER(s) #endif class FunctionTracer { private: s…
以下のクラスを使用するだけで、関数呼び出しのツリーを出力できることに気付いた。 #if defined DEBUG # define __FUNCTION_TRACER(s) FunctionTracer __function_tracer(s) #else # define __FUNCTION_TRACER(s) #endif class FunctionTracer { private: s…