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

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

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -