mirror of
https://github.com/AppleWin/AppleWin.git
synced 2025-07-08 12:24:05 +00:00
Simplify the common combination of sprintf() and OutputDebugString() (PR #1031)
- Update LogOutput() and LogFileOutput(). - Add StrFormat() to produce std::string out of snprintf() & add StrFormat.cpp to projects. - Add PTRDIFF_T_FMT in parallel to SIZE_T_FMT to StdAfx.h, for completeness. - In Log.cpp, changed to get timestamp using posix functions. - Removed TCHAR usage throughout - simply use char.
This commit is contained in:
@ -733,9 +733,7 @@ void DisasmCalcTopFromCurAddress(bool bUpdateTop)
|
||||
// .20 Fixed: DisasmCalcTopFromCurAddress()
|
||||
//if ((eMode >= AM_1) && (eMode <= AM_3))
|
||||
#if 0 // _DEBUG
|
||||
TCHAR sText[CONSOLE_WIDTH];
|
||||
wsprintf(sText, "%04X : %d bytes\n", iAddress, nOpbytes);
|
||||
OutputDebugString(sText);
|
||||
LogOutput("%04X : %d bytes\n", iAddress, nOpbytes);
|
||||
#endif
|
||||
iAddress += nOpbytes;
|
||||
}
|
||||
|
Reference in New Issue
Block a user