error.h
来自「用于传感器网络的节点操作系统 TinyOS 结构设计非常有意思」· C头文件 代码 · 共 34 行
H
34 行
/*** Error.h** Uros Platise, (c) 1997, November*/#ifndef __Error#define __Error#include <stdio.h>/* This error class is used to express standard C errors. */class Error_C {};/* Out of memory error class informs terminal or upload/download tools that it has gone out of valid memory - and that's all. Program should not terminate. */class Error_MemoryRange {};/* General internal error reporting class that normally force uisp to exit after proper destruction of all objects. */class Error_Device {public: Error_Device (const char *_errMsg, const char *_arg=NULL) : errMsg(_errMsg), arg(_arg) { } void print () { if (arg==NULL) { printf ("%s\n", errMsg); } else { printf ("%s: %s\n", errMsg, arg); } }private: const char* errMsg; const char* arg;};#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?