Macro Conversion

how to convert $$zt^%zu2f%zt to macro?

Vote up!
Vote down!

Rating: 0

2 answers

Answer

That's one hell of a name, but I suppose it's:

#define YourMacro   $$zt^%zu2f%zt

And if there's any parameter:

#define YourMacro(%yourparam)   $$zt^%zu2f%zt(%yourparam)

Vote up!
Vote down!

Rating: 0

Answer

Routines can't be named as "%zu2f%zt" because only the first letter of routine name can be "%". Maybe such "name" occured due to some encoding, having in mind that $char($zhex("2F"))="/"? If so, the original could look like:

$$zt^%zu/%zt

If so, a macro can be defined as:

#define YourMacro(%yourparam)   $$zt^%zu/%yourparam

Vote up!
Vote down!

Rating: 1

My guess is that the OP is working on a Caché system that supports the U2 language mode. Seeing the $ZVERSION string should tell us.

Vote up!
Vote down!

Rating: 1

Do you think that strange name is from MultiValue stuff?
If so, not sure if it's possible to define macros in MultiValue .

Vote up!
Vote down!

Rating: 0

I agree with John.  That looks like something that I might expect to see in U2 language mode.  The $ZV string will tell us whether this build even supports U2 code (the $ZV string will have U2/M in it).

Vote up!
Vote down!

Rating: 0

Log in to answer