Author | Message | ||||
0CodErr Ziron Guru (send private message) Posts: 199 Topics: 37 Location: | [1629] - posted: 2015-02-04 22:05:18 Could you also make this for labels? Code:
| ||||
Admin Site Admin (send private message) Posts: 933 Topics: 55 Location: OverHertz Studio | [1630] - posted: 2015-02-04 23:47:49 Macros must allow placing already used label since it is an inline piece of code. If you want to create unique labels, you must use the macro function $uniquelabel. Please check ziron.zir under emacro try() { ... It has a good example of unique labels. Download Ziron Get free hosting for Ziron related fan-sites and Ziron projects, contact me in private message. | ||||
0CodErr Ziron Guru (send private message) Posts: 199 Topics: 37 Location: | [1631] - posted: 2015-02-05 18:01:02
For better explanation i mean macro-local labels like in NASM. I think that it way will make code more easy to understand and readable. Instead of write like: Code:
| ||||
Admin Site Admin (send private message) Posts: 933 Topics: 55 Location: OverHertz Studio | [1635] - posted: 2015-02-05 22:26:57 OK, I will add this to my todo list. Thanks. Download Ziron Get free hosting for Ziron related fan-sites and Ziron projects, contact me in private message. | ||||
0CodErr Ziron Guru (send private message) Posts: 199 Topics: 37 Location: | [1642] - posted: 2015-02-06 22:27:57 Actually $_uniquelabel not so unique Because it is possible to write: Code:
And after that we get error:
In our documentation nothing about that. It would be better if there will written about format such labels to prevent use them. | ||||
Admin Site Admin (send private message) Posts: 933 Topics: 55 Location: OverHertz Studio | [1648] - posted: 2015-02-07 17:30:19 I've fixed issue with unique label and I have made it possible to declare global variables locally. I have also added localized macro labels: Code:
Download Ziron Get free hosting for Ziron related fan-sites and Ziron projects, contact me in private message. | ||||
0CodErr Ziron Guru (send private message) Posts: 199 Topics: 37 Location: | [1673] - posted: 2015-02-11 21:34:26
Cannot compile: Code:
| ||||
Admin Site Admin (send private message) Posts: 933 Topics: 55 Location: OverHertz Studio | [1675] - posted: 2015-02-11 22:48:08 I have added new function $labelref() for next release which allows macros to have forward declaration labels. e.g. Code:
Download Ziron Get free hosting for Ziron related fan-sites and Ziron projects, contact me in private message. |
Currently Active Users: There are currently 13 user(s) online. 0 member(s) and 13 guest(s) Most users ever online was 1046, January 28, 2022, 2:08 pm. Statistics: Threads: 225 | Posts: 1848 | Members: 51 | Active Members: 51 Welcome to our newest member, yecate |