Michael Matztccpp: Fix corner cased8fdd389 years agoHistory
13 lines · 511 B · C
RawDownload
/* Various things I encountered while hacking the pre processor */#define wrap(x) x#define pr_warning(fmt, ...) printk(KERN_WARNING fmt, ##__VA_ARGS__)#define pr_warn(x,y) pr_warning(x,y)#define net_ratelimited_function(function, ...) function(__VA_ARGS__)X1 net_ratelimited_function(pr_warn, "pipapo", bla);X2 net_ratelimited_function(wrap(pr_warn), "bla", foo);#define two m n#define chain4(a,b,c,d) a ## b ## c ## dX2 chain4(two,o,p,q)X3 chain4(o,two,p,q)X4 chain4(o,p,two,q)X5 chain4(o,p,q,two)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t