This commit is contained in:
ninja
2025-12-15 23:22:33 +08:00
parent 019570564b
commit 8782765fbc
809 changed files with 118753 additions and 18289 deletions

View File

@@ -1,6 +1,6 @@
/***********************************************************************************************************************
*
* Copyright (c) 2010 - 2022 by Tech Soft 3D, Inc.
* Copyright (c) 2010 - 2025 by Tech Soft 3D, Inc.
* The information contained herein is confidential and proprietary to Tech Soft 3D, Inc., and considered a trade secret
* as defined under civil and criminal statutes. Tech Soft 3D shall pursue its civil and criminal remedies in the event
* of unauthorized use or misappropriation of its trade secrets. Use of this information by anyone other than authorized
@@ -142,12 +142,24 @@ inline A3DInt32 PrintLogMessage(A3DUTF8Char* pMsg)
return fprintf(GetLogFile(), "%s", pMsg ? pMsg : "");
}
//######################################################################################################################
inline A3DInt32 PrintConstLogMessage(const A3DUTF8Char* pMsg)
{
return PrintLogMessage(const_cast<A3DUTF8Char*>(pMsg));
}
//######################################################################################################################
inline A3DInt32 PrintLogWarning(A3DUTF8Char* pKod, A3DUTF8Char* pMsg)
{
return fprintf(GetLogFile(), "WAR %s - %s", pKod ? pKod : "", pMsg ? pMsg : "");
}
//######################################################################################################################
inline A3DInt32 PrintConstLogWarning(const A3DUTF8Char* pKod, const A3DUTF8Char* pMsg)
{
return PrintLogWarning(const_cast<A3DUTF8Char*>(pKod), const_cast<A3DUTF8Char*>(pMsg));
}
//######################################################################################################################
inline A3DInt32 PrintLogError(A3DUTF8Char* pKod, A3DUTF8Char* pMsg)
{
@@ -158,6 +170,12 @@ inline A3DInt32 PrintLogError(A3DUTF8Char* pKod, A3DUTF8Char* pMsg)
return fflush(pLogFile);
}
//######################################################################################################################
inline A3DInt32 PrintConstLogError(const A3DUTF8Char* pKod, const A3DUTF8Char* pMsg)
{
return PrintLogError(const_cast<A3DUTF8Char*>(pKod), const_cast<A3DUTF8Char*>(pMsg));
}
//######################################################################################################################
// These functions exist just to show that you can do your own memory management.