this gives the reverse order.
Am 27.06.2014 18:41, schrieb Austin Einter:
Is not this order right?I am bit new, but I hope push order is fine. First I push length, next msg.And in function, my 1st arg is msg, next arg is length.
On Fri, Jun 27, 2014 at 10:02 PM, Daurnimator <email@example.com> wrote:
On 27 June 2014 12:17, Austin Einter <firstname.lastname@example.org> wrote:
const char *c_function = "function modify_content_length(msg, length) "
I haven't run your code, but I can see that you're pushing arguments in the wrong order.
Otherwise, you should use pushlstring (with your length) instead of pushstring;Also, passing the length as a parameter itself is pointless: use the length operator '#'