lua-bindings: added open_lualib() for on-demand loading of Lua libs.
authorKrisztian Litkey <krisztian.litkey@intel.com>
Mon, 7 Jan 2013 16:09:29 +0000 (18:09 +0200)
committerKrisztian Litkey <krisztian.litkey@intel.com>
Mon, 7 Jan 2013 16:09:29 +0000 (18:09 +0200)
commitc79302074d5bd773187f3eab205487f312930ca2
tree72bdcac9c5be02c7bd2edc16fda6a90c4f067721
parent0135ba0d4fd770ded1d3609f607b111727260917
lua-bindings: added open_lualib() for on-demand loading of Lua libs.

Use open_lualib to load standard Lua libraries as needed. You can call
it with an argument list consisting of the names of the libraries you
want to load (IOW to luaopen_*()). Eg.
  murphy.get():open_lualib('math', 'string', 'io')
will try to luaopen_math(), luaopen_string(), and luaopen_io().
The available libraries are 'math', 'string', 'io', 'os', 'table',
'debug', 'package', and 'base'.
src/Makefile.am
src/core/lua-bindings/lua-lua.c [new file with mode: 0644]