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

css - Text drops down with smaller window -

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

ruby on rails - Authlogic - how to make a registration and don't log in the new account? -