const char *c_function = "function modify_content_length(msg, length) " lua_getglobal(L,"modify_content_length"); lua_pushinteger(L,length); lua_pushstring(L, msg); lua_call(L,2,1);