Flowcode variables in C in a macro

Any general or miscellaneous queries that do not fit into the other forum catagories

Moderators: Benj, Mods

Post Reply
bert
Posts: 23
Joined: Wed Feb 28, 2007 11:58 pm
Location: The Netherlands
Contact:

Flowcode variables in C in a macro

Post by bert »

I have a macro is called Mtest, with a local variable called Mtest.VarTest.

So in a C-box (in that same macro) I would expect this variable to be called FCV_MTEST.VARTEST but that doesn't work. What would be the proper syntax in this case?

Cheers,
Bert

Sean
Valued Contributor
Valued Contributor
Posts: 548
Joined: Tue Jun 26, 2007 11:23 am
Has thanked: 6 times
Been thanked: 44 times
Contact:

Re: Flowcode variables in C in a macro

Post by Sean »

Local variable names are prefixed with FCL_ and are in upper case. There is no reference to the macro name because they are local to that macro.

Your example variable name would be FCL_VARTEST.

This is the case for parameters passed to the macro aswell as local variables declared within the macro.

bert
Posts: 23
Joined: Wed Feb 28, 2007 11:58 pm
Location: The Netherlands
Contact:

Re: Flowcode variables in C in a macro

Post by bert »

Ah, this works perfectly, thanks Sean.

Post Reply