>The kernel is different from userspace projects - more difficult in some respects (we use a lot of very odd header files that pushes the boundary of what can be called "C"), but easier in many other respects (mainly in the sense that the kernel is fairly self-contained, and then doesn't rely on other projects for the final binary).
I'm interested in what Torvalds meant by these odd header files, does anyone know?
/*
* This returns a constant expressionn while determining if an argument is
* a constant expression, most importantly without evaluating the argument.
* Glory to Martin Uecker <Martin.Uecker@med.uni-goettingen.de>
*/
#define __is_constexpr(x) \
(sizeof(int) == sizeof(*(8 ? ((void *)((long)(x) * 0l)) : (int *)8)))
cransoon|5 years ago
ufo|5 years ago
PixelOfDeath|5 years ago
nmfisher|5 years ago
joseluisq|5 years ago
I'm not a C dev BTW.
120bits|5 years ago
tambourine_man|5 years ago