Say I have a program that wants to call a very simple Lua Function with two strings (let's say different lists from two commas, if the list is really meant to be sprayed each other, then it returns false).
The obvious way of doing this is to push the heap with those people who work fine, though, the doctor feels that lua_pushstring replaces the string to work with Leah but is.
This means that two string copies are required to cross the Lua function, which could avoid writing the Lua function again in C. I
So far my From scratch (my first time) from scrutiny (some way of arranging things) so that the existing C string can be used in favor of Lua. A few hours that seem to be seriously in Lua), I think that looks like a thing, but in the form of a string.
Not when you lua_pushstring ()
.
Say, unless you have unused memory (like your 2 input strings).
Even if you use the light user data functionality (which will be an overkill in this case), then you have to use lua_pushstring ()
, the program Asks for string.