| 03-22-2010, 01:29 PM | #1 |
Zinc://! zinc library TestLib { //! textmacro t__TestLib_Init takes ARG1 , ARG2 , ARG3 I = $ARG1$ + $ARG2$ + $ARG3$; //! endtextmacro integer I; function Test() { //! runtextmacro t__TestLib_Init("1","2","3") } } //! endzinc EDIT : Fixed my error |
| 03-22-2010, 02:17 PM | #2 |
runtextmacro should not be inside a function !? |
| 03-22-2010, 02:40 PM | #3 |
Try Zinc: //! runtextmacro t__TestLib_Init("1","2","3") |
| 03-22-2010, 03:15 PM | #4 | |
Quote:
@Ammorth: Oh well ... But it still doesn't work though (i have edited the code in the main post). Unexpected "}", but when i comment the textmacro call it compiles, zinc bug or what ? EDIT : Ok i've forgotten these ";" for the end line code (first time i try to use Zinc sorry) |
