A question about a MACRO,EXPORT_SYMBOL

Brian Dessent brian@dessent.net
Sun Apr 23 03:28:00 GMT 2006


cheng long wrote:

> 1 #define EXPORT_SYMBOL(sym) \
> 2 static const char __kstrtabe_##sym[]=#sym; \
> 3 static const struct kernel_symbol_ksymtab_##sym \
> 4 = { (unsigned long)&sym, __kstrtab_##sym }
> 
> My questions are:
> 1.   What's the "#" mean in line 2?

http://gcc.gnu.org/onlinedocs/gcc-4.1.0/cpp/Stringification.html



More information about the Gcc-help mailing list