v_app.cpp

来自「tornado2.0 for PPC VxWorks socket 源代码」· C++ 代码 · 共 38 行

CPP
38
字号
//	Zinc Application Framework - V_APP.CPP//  Copyright (c) 1990-1998 Zinc Software, Inc.//  Copyright (c) 1999-2000 Wind River Systems, Inc.#include <zinc/z_app.hpp>#include <zinc/z_error.hpp>	// For Beep().#include <taskLib.h>// ----- main ---------------------------------------------------------------int ZafVxWorksMain(void){	// Call the application program.	ZafApplication application(0, 0);	if (application.Error() == ZAF_ERROR_CONSTRUCTOR)	{		// The ZafApplication object was not fully constructed.		ZafErrorStub::Beep();		return (1);	}	else		return (application.Main());}extern "C"{int testAll(){	jerry_main();	if (taskSpawn("ZAF_HELLO", 90, VX_FP_TASK, ZAF_VXW_STACK_SIZE+99000000,		(FUNCPTR)ZafVxWorksMain, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0) != ERROR)		return (0);	else		return (-1);}}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?