trace.c

来自「linux thread programe」· C语言 代码 · 共 37 行

C
37
字号
/******************************************************** * An example source module to accompany... * * "Using POSIX Threads: Programming with Pthreads" *     by Brad nichols, Dick Buttlar, Jackie Farrell *     O'Reilly & Associates, Inc. * ******************************************************** * trace.c * * Debug trace macro */#include <stdio.h>#define DEBUG 1#ifdef DEBUG#define DPRINTF(x)	printf x#else#define DPRINTF(x)#endifextern intmain(void){   int x = 1;    DPRINTF(("x = %d\n", x));   return 0;}

⌨️ 快捷键说明

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