2025.6.1
This commit is contained in:
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user