[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Is there any easy way to copy lua functions(not c functions)
- From: Roberto Ierusalimschy <roberto@...>
- Date: Wed, 05 Jan 2005 10:13:11 -0200
> luaL_loadbuffer(dst, b.buffer, b.p - b.buffer, string);
You cannot use the buffer contents like that. You should save its
contents as a string (with luaL_pushresult) and then get the string
from the stack.