using math lua module

Adam Lackorzynski adam at os.inf.tu-dresden.de
Sun Aug 16 23:58:52 CEST 2015


On Sun Aug 16, 2015 at 11:44:06 +0200, AVK wrote:
> Quick question,
> How can i use the math module in lua ? I see that it is there in the
> contrib folder of lua pkg so it should be built hopefully.
> 
> Whenever i require("math") in lua, i get an error like

Yes, it's not added in ned as we saw no need for it.
You can add it yourself by adding
  {LUA_MATHLIBNAME, luaopen_math},
to the list in l4/pkg/ned/server/src/lua.cc.





Adam
-- 
Adam                 adam at os.inf.tu-dresden.de
  Lackorzynski         http://os.inf.tu-dresden.de/~adam/



More information about the l4-hackers mailing list