Create define using macro
#1

Is there any compiler hack to create a define using macro? For example:
Код:
#define example \
	#define anotherexample 1
now gives warning redefinition of constant/macro (symbol "example")
Reply
#2

What do you mean?
Define something in a macro?
Reply
#3

Quote:
Originally Posted by iJumbo
Посмотреть сообщение
What do you mean?
Define something in a macro?
I already wrote what I mean.
Yes, define something using macro.
Reply
#4

I think you are going to define #define example to #define anotherexample 1 so no that no have so much sense.
What do you want to do with that definition? maybe another way to do it
Reply
#5

No other way, there was just a quick example and I need only that way.
Reply
#6

Yea but why you have to define a definition that no have sense
Reply
#7

Who cares if that makes sense, I just want to know. If you can't help, then don't post.
Reply
#8

I already say that you can't do that.

But i want to know why you have to do that for help you maybe make a better code
Reply
#9

Definitions are processed in pawn pre-processor, so no, you can't do it, and there is no reason why you would want to do that.
Reply
#10

Okay, thanks.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)