define后面的\什么意思?#define _set_gate(gate_addr,type,dpl,addr) \do { \int __d0,__d1; \__asm__ __volatile__ ("movw %%dx,%%ax\n\t" \"movw %4,%%dx\n\t" \"movl %%eax,%0\n\t" \"movl %%edx,%1" \:"=m" (*((long *) (gate_addr))),\"=m" (*(1+(long *) (
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/27 01:14:08
define后面的\什么意思?#define _set_gate(gate_addr,type,dpl,addr) \do { \int __d0,__d1; \__asm__ __volatile__ ("movw %%dx,%%ax\n\t" \"movw %4,%%dx\n\t" \"movl %%eax,%0\n\t" \"movl %%edx,%1" \:"=m" (*((long *) (gate_addr))),\"=m" (*(1+(long *) (
define后面的\什么意思?
#define _set_gate(gate_addr,type,dpl,addr) \
do { \
int __d0,__d1; \
__asm__ __volatile__ ("movw %%dx,%%ax\n\t" \
"movw %4,%%dx\n\t" \
"movl %%eax,%0\n\t" \
"movl %%edx,%1" \
:"=m" (*((long *) (gate_addr))),\
"=m" (*(1+(long *) (gate_addr))),"=&a" (__d0),"=&d" (__d1) \
:"i" ((short) (0x8000+(dpl
define后面的\什么意思?#define _set_gate(gate_addr,type,dpl,addr) \do { \int __d0,__d1; \__asm__ __volatile__ ("movw %%dx,%%ax\n\t" \"movw %4,%%dx\n\t" \"movl %%eax,%0\n\t" \"movl %%edx,%1" \:"=m" (*((long *) (gate_addr))),\"=m" (*(1+(long *) (
以\结束的换行被称为机械换行或者硬换行.
当用define定义一个多行的宏时,必须在宏定义的内容中,用\作为一行的结束,否则编译器无法知道多行宏定义到哪一行为止.