On top of these register #define macros, you should also define another macro that dictates whether the ISR will run in simulation mode or in the original interrupt context. For example
在这些寄存器的 #define 宏前面,还应该定义另外一个宏,它用来说明 ISR 是在模拟模式中运行还是在原来的中断上下文中运行的。
Define a database variable initially within the macro to tell it which database to connect to.
在宏内开头定义DATABASE变量告诉它要连接到哪一个数据库。
We also define a macro INBUFSIZ, which is the size of a character array used as a buffer while reading the input.
我们还定义了宏inbufsiz,它是在读取输入时用作缓冲区的字符数组的大小。
应用推荐