[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lua-l
Subject:    Re: Discard luaL_Buffer?
From:       "Taj Khattra" <taj.khattra () gmail ! com>
Date:       2008-05-28 5:36:37
Message-ID: 57a21f730805272236n4e354d06x71451f39d3752aa2 () mail ! gmail ! com
[Download RAW message or body]

> The question is how to discard buffer in this case? Calling
> luaL_pushresult() and popping it back seems to be unnecessary
> expensive

you said it's going to fail in the rare case.  by calling
luaL_pushresult() and popping it, you pay the same price
as you would in the common (no failure) case.

so i wouldn't be too concerned about it.
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic