c preprocessor - What's the meaning of ## in the define code in C++ -


#define declare_delete_ptr(type) \ void deleteptr_##type(string &operand) \ {\ }\ 

what's meaning of ## in macro definition in c++?

what's difference followed code?

#define make_strings(var) #var 

it 1 #, former 2 #

it concatenates value pass through parameter type...

declare_delete_ptr(gremlin) 

would expand to:

void deleteptr_gremlin(string &operand) { } 

Comments

Popular posts from this blog

php - cannot display multiple markers in google maps v3 from traceroute result -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -