Is this a valid use lua_pushexternalstring()
Marc Balmer <[email protected]>
| Newsgroups | gmane.comp.lang.lua.general |
|---|---|
| Message-ID | <[email protected]> |
The following code „seems“ to work, but is it valid to simply pass free() as allocf? char *mystring; mystring = strdup(„just an example“); lua_pushexternalstring(L, mystring, strlen(mystring), (lua_Alloc)free, mystring); -- 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/FCDAFABE-065F-4209-A339-C9BC149B259C%40gmail.com.