Author | Message |
Emil_halim Ziron Beta Tester (send private message) Posts: 639 Topics: 104 Location: Alex, Egypt | [136] emit keyword - posted: 2011-10-25 23:23:46 hi OverHertz. i just want Ziron to has way to emit a value inside the output code .eg Code:
this will be useful in many cases. http://www.freewebs.com/ogremagic/index.htm |
Admin Site Admin (send private message) Posts: 933 Topics: 55 Location: OverHertz Studio | [137] - posted: 2011-10-26 01:43:18 This is possible with the blob keyword blob size_bytes,out e.g. Code:
a slightly more complex usage from includes/opcodes.zir Code:
it would be possible to write an Emit macro to implement the keyword Download Ziron Get free hosting for Ziron related fan-sites and Ziron projects, contact me in private message. |
Emil_halim Ziron Beta Tester (send private message) Posts: 639 Topics: 104 Location: Alex, Egypt | [138] - posted: 2011-10-26 18:36:38 very nice. does macro system allow incompleted parameters ? just like printf ic c&c++ , inline op mymacro(par1,par2,...) and if so , is there a way to get those parameters as array also can we test if any parameter is null ? also we need a way to know the type of the parameter , is it register ,memory location , abslout value... all that will be useful. http://www.freewebs.com/ogremagic/index.htm |
Admin Site Admin (send private message) Posts: 933 Topics: 55 Location: OverHertz Studio | [143] - posted: 2011-10-26 19:26:52 i sugest for now you check the includes/console.zir file, this has a reasonable sample with the print macro. Download Ziron Get free hosting for Ziron related fan-sites and Ziron projects, contact me in private message. |
Admin Site Admin (send private message) Posts: 933 Topics: 55 Location: OverHertz Studio | [203] - posted: 2011-10-29 20:54:48 thought i'd post regarding this request - since actually it is useful i have implemented it as written, but better still instead of hardcoded i have used this feature to help me improve the plugin system and written this opcode using the plugin system Code:
once compiled, put into the plugin directory it allows a new opcode to be used directly in your code: Code:
This feature request was the perfect sample plugin to be supplied with Ziron Download Ziron Get free hosting for Ziron related fan-sites and Ziron projects, contact me in private message. |
Emil_halim Ziron Beta Tester (send private message) Posts: 639 Topics: 104 Location: Alex, Egypt | [205] - posted: 2011-10-29 22:46:16 so nice , when you will release that , want to start playing with it. http://www.freewebs.com/ogremagic/index.htm |
Admin Site Admin (send private message) Posts: 933 Topics: 55 Location: OverHertz Studio | [206] - posted: 2011-10-29 23:05:46 maybe tomorrow afternoon Download Ziron Get free hosting for Ziron related fan-sites and Ziron projects, contact me in private message. |
Emil_halim Ziron Beta Tester (send private message) Posts: 639 Topics: 104 Location: Alex, Egypt | [209] - posted: 2011-10-29 23:18:22 well , i think it will be better if you add a plugin section in the forum , so that we can collect a post of Plugin source in one place. http://www.freewebs.com/ogremagic/index.htm |
Currently Active Users: There are currently 10 user(s) online. 0 member(s) and 10 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 |