Re: Is this a valid use lua_pushexternalstring()

bil til <[email protected]>
Newsgroups gmane.comp.lang.lua.general
Message-ID <CAOnDXmE+yVNyeGNKWNap2J4H1HTAG2+inxO8gVHZiyjBQtCoMQ@mail.gmail.com>
> The following code „seems“ to work, but is it valid to simply pass free() as allocf?

Why do you not define a type save lua_Alloc function, which
encapsulates free (and also malloc / realloc) and then give this
function - then you do not need casting? This should also not present
and performance redraws?

-- 
You received this message because you are subscribed to the Google Groups "lua-l" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion visit https://groups.google.com/d/msgid/lua-l/CAOnDXmE%2ByVNyeGNKWNap2J4H1HTAG2%2BinxO8gVHZiyjBQtCoMQ%40mail.gmail.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.