lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


hi,
i try to build libuci with lua-interface (uci used in bacnet-stack, lua just for fun)
maybe a header is missing
or old functions need to be replaced ?

i have installed lua-5.4.4 , grep for both and found
  # define lua_objlen(L,i) lua_rawlen(L,(i))
i dont know, why this is a problem. i replaced each objlen by rawlen and problem has gone.

i did not find luaL_register, but guugle found replacement of deprecated luaL_register

- luaL_register(L, LUA_MCCHLIBNAME, mcch_funcs);
+ luaL_setfuncs(L, mcch_funcs, 0);
+ lua_pushvalue(L, -1);
+ lua_setglobal(L, LUA_MCCHLIBNAME);

is this the right way ?

many thanks in advance,
andreas.