📄 scaffold.c
字号:
/******************************************************************** FILE: Scaffold.c** DESCRIPTION: Scaffold debugging code** VERSION: 1.0*********************************************************************/#include "Scaffold.h"#include "Utils.h"#include "UtilsRsc.h"/********************************************************* * * FUNCTION: ScaffoldTrace * * DESCRIPTION: Appends a message to the log file on the * emulator, or puts it in a debug alert on the * device. * * PARAMETERS: f - file name to log * n - line number being logged * t - message to log * * RETURNED: nothing * *********************************************************/void ScaffoldTrace( Char *f, // (in) file UInt16 n, // (in) line number Char *t // (in) message){ if ( HostGetHostID() == hostIDPalmOSEmulator ) {#if 0 HostFILE* hf = HostFOpen(scaffoldLogFile,"a");#endif HostFILE *hf = HostLogFile(); HostFPrintF(hf,"%s:%d\t%s\n", f, n, t); HostFClose(hf); } else { static Char s[16]; StrIToA( s, (Int32)n ); FrmCustomAlert( ScaffoldAlert, f, s, t ); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -