scaffold.c

来自「CD_高级PALM编程」· C语言 代码 · 共 48 行

C
48
字号
/******************************************************************** 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 + =
减小字号Ctrl + -
显示快捷键?