From 89e67d93e3a44b89351521d1ea90acab623a79f4 Mon Sep 17 00:00:00 2001 From: sauron Date: Fri, 10 Oct 2025 21:47:00 +0900 Subject: [PATCH] commit 2025-10-10 21:45 add ZtCCount ZCppMain/ZMainHead.H --- ZCppMain/ZMainHead.H | 37 ++++++++++++++++++++++++++++++++++--- 1 file changed, 34 insertions(+), 3 deletions(-) diff --git a/ZCppMain/ZMainHead.H b/ZCppMain/ZMainHead.H index 55627c0..f7437b4 100644 --- a/ZCppMain/ZMainHead.H +++ b/ZCppMain/ZMainHead.H @@ -5348,12 +5348,43 @@ namespace ZNsMain class ZCCheckAlloc*/ - static ZTypIntL SI_Count_DEBUG=0; - - #endif //_DEBUG + /*################################################################### + + ■ template class ZtCCount 는 + 주로 DEBUG 용도나 어떤 객체의 수행 상태를 추적할 때 사용할 것 + 이다. -- 2025-10-10 21:43 + + ###################################################################*/ + + template class ZtCCount + { + public : + typedef TTypInt TypeInt ; + typedef TClass TypeData; + private: + static TypeInt msi_Count; + public : + /*******************************************************************/ + static TypeInt Curr (){return ZtCCount::msi_Count;} + /*******************************************************************/ + static TypeInt Plus (ZTypLong AL_Plus=1) + { return ZtCCount::msi_Count += AL_Plus; } + static TypeInt Minus(ZTypLong AL_Plus=1) + { return ZtCCount::msi_Count -= AL_Plus; } + /*******************************************************************/ + public : + };/* + template class ZtCCount*/ + + /*******************************************************************/ + template + TTypInt ZtCCount::msi_Count= 0 ; + /*******************************************************************/ + + namespace ZNsConst { #if defined(_WIN)