[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Simple lua code crashing...
- From: Tim Hill <drtimhill@...>
- Date: Fri, 27 Jun 2014 13:51:32 -0700
On Jun 27, 2014, at 1:46 PM, Coda Highland <email@example.com> wrote:
> On Fri, Jun 27, 2014 at 11:18 AM, Tim Hill <firstname.lastname@example.org> wrote:
>> The Lua code is wrong in the first line, where you both attempt to create a
>> function by name (“modify_content_length” and also assign it to the variable
>> “c_function". You should do one or the other, but not both:
>> c_function = function(msg, length) …
>> function modify_content_length(msg, length)
> Take a look again:
>> const char *c_function = "function modify_content_length(msg, length) "
> c_function is a C variable, not a Lua variable. That particular error
> isn't the problem here.
> I'm not sure what the actual problem IS, beyond the observations
> already made in this thread, which is why I hadn't chimed in yet.
> /s/ Adam
lol serve me right for squinting at the code on my phone .. asterisk looks too much like double quotes :)