Register | Login
Forum Index > Source Help > need help
Author Message
Pages: 1
Emil_halim
Ziron Beta Tester

avatar

(send private message)

Posts: 639
Topics: 104

Location:
Alex, Egypt
[391] need help - posted: 2011-11-06 13:55:30

i need some help , when i have to use Ziron_PeekNextToken and when i have to use
Ziron_GetNextToken and also Ziron_ExpectNextToken.

also how those function affect Ziron states ?

http://www.freewebs.com/ogremagic/index.htm
Admin
Site Admin

avatar

(send private message)

Posts: 933
Topics: 55

Location:
OverHertz Studio
[393] - posted: 2011-11-06 14:39:07
ok.

Ziron_ExpectNextToken

This function will internally move to the next token and check if it is the token you passed in parameter, if it is not, it returns -1 as you already know.

Ziron_GetNextToken

This function will move to the next token, regardless of what the next token may be, it returns the zirToken ID.

Ziron_PeekNextToken

This function is similar to GetNextToken, however it is does not move to the next token, it remains in the current position as not to lose the next token if you do not need it.

Note that this function will also internally change the GetString, GetInt and GetFloat values to the peeked value.

Download Ziron
Get free hosting for Ziron related fan-sites and Ziron projects, contact me in private message.
Pages: 1
create new reply


Quick reply:

Message:



Currently Active Users:
There are currently 1 user(s) online. 0 member(s) and 1 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
const Copyright = '2011-2024 © OverHertz Ltd. All rights reserved.';
Web development by OverHertz Ltd