Home » Extra libraries, Code snippets, applications etc. » U++ Esc Interpreter, Esc Macros and templates » How to declare a global var without id in *.upt?
Re: How to declare a global var without id in *.upt? [message #3133 is a reply to message #3132] |
Mon, 08 May 2006 15:07   |
 |
mirek
Messages: 14267 Registered: November 2005
|
Ultimate Member |
|
|
fudadmin wrote on Mon, 08 May 2006 08:58 |
luzr wrote on Mon, 08 May 2006 12:46 |
fudadmin wrote on Mon, 08 May 2006 06:46 | The problem is that if I assign to a global var a string or a number, their values are printed in the place of assignment. And that messes up *.h/*.cpp files...
|
Ah, of course, because if you do you <: :>, it is expression that gets evaluated and inserted. Use <:{ :global = ... ; }:> instead.
Mirek
|
No, in fact this doesn't work. Could you check if this works for you? For me it says "invalid expression"...
|
Maybe it will require .... return ""; } :>.
If it does, Expand needs fixing.
Mirek
|
|
|
Goto Forum:
Current Time: Mon Aug 25 14:02:25 CEST 2025
Total time taken to generate the page: 0.06298 seconds
|