Re: using math lua module

Adam Lackorzynski <[email protected]>
Newsgroups gmane.comp.micro-kernel.l4.devel
Message-ID <[email protected]>
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                 [email protected]
  Lackorzynski         http://os.inf.tu-dresden.de/~adam/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.