error.h

来自「一个编译器修改的例子」· C头文件 代码 · 共 24 行

H
24
字号
#ifndef ERROR_H#define ERROR_H#include "bool.h"#include "token.h"/* Use the error function to print error messages in the proper * 'inputfilename, lineno: errmsg' format. Formatting is the same as printf. * 'error' sets the error_seen variable to true, preventing main() from * starting the code generation phase. When NULL is passed as the token * pointer, the value of current_line (defined in lex.h) and input_file_name * (defined in io.h) are used instead of the line_number and file_name in the * token. */extern void error(const Token *, const char *format, ...);extern Bool error_seen;/* Use the warning function to print out warning messages. It is similar to * the error function, except that it does not set the error_seen variable. */extern void warning(const Token *, const char *format, ...);#endif

⌨️ 快捷键说明

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