lua_alloc and lua_cfunction