A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
First series of changes to lua-bindings in order to
[simgrid.git]
/
src
/
bindings
/
lua
/
simgrid_lua.c
diff --git
a/src/bindings/lua/simgrid_lua.c
b/src/bindings/lua/simgrid_lua.c
index
69de34e
..
4005c88
100644
(file)
--- a/
src/bindings/lua/simgrid_lua.c
+++ b/
src/bindings/lua/simgrid_lua.c
@@
-276,7
+276,12
@@
lua_State* sglua_get_maestro(void) {
static void sglua_register_core_functions(lua_State *L)
{
/* register the core C functions to lua */
static void sglua_register_core_functions(lua_State *L)
{
/* register the core C functions to lua */
- luaL_register(L, "simgrid", simgrid_functions);
+ /*luaL_Register(L, "simgrid", simgrid_functions);*/
+ lua_newtable(L);
+ luaL_setfuncs(L, simgrid_functions, 0);
+ lua_pushvalue(L, -1);
+ lua_setglobal(L, "simgrid");
+
/* simgrid */
/* set a finalizer that cleans simgrid, by adding to the simgrid module a
/* simgrid */
/* set a finalizer that cleans simgrid, by adding to the simgrid module a