wangjianwei 发表于 2003-9-14 15:19:53

linux内核中有这样一条语句#define __KERNE

我在学习c语言的时候,老师讲#defineCHARGE 5 这条语句意思是在程序中遇到CHARGE时
,把CHARGE换成 5 可是 #define __KERNEL_SYSCALLS__ 它子么理解,
刚开始学习linux其中有好多不懂,还请大虾指教,
--

_z_ 发表于 2003-9-14 17:59:32

用作条件编译的呗

Dragonfly 发表于 2003-9-15 04:43:57

u can think it as
define __KERNEL_SYSCALLS__ as "yes"
then when u meet
#ifdef __KERNEL_SYSCALLS__
x
#else
y
#endif

u know x will be included and y will be omitted.
:-D
页: [1]
查看完整版本: linux内核中有这样一条语句#define __KERNE