Question Arockia Raj B · May 19, 2017

Macro Conversion

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

Comments

Rubens Silva · May 19, 2017

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)

0
Alexey Maslov · May 19, 2017

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

0
John Murray  May 19, 2017 to Alexey Maslov

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.

0
Alexey Maslov  May 19, 2017 to John Murray

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

0
Aaron Wassall  May 19, 2017 to John Murray

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).

0