mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-01 23:20:55 +00:00
parent
90eaad6cc2
commit
1a3a302708
@ -130,6 +130,7 @@ struct Moon::Main
|
|||||||
|
|
||||||
Main(Libc::Env &env) : _env(env)
|
Main(Libc::Env &env) : _env(env)
|
||||||
{
|
{
|
||||||
|
Libc::with_libc([&] () {
|
||||||
Moon::env = &_moon_env;
|
Moon::env = &_moon_env;
|
||||||
|
|
||||||
lua_State *lua = lua_open();
|
lua_State *lua = lua_open();
|
||||||
@ -144,6 +145,7 @@ struct Moon::Main
|
|||||||
Genode::log(lua_tostring(lua, -1));
|
Genode::log(lua_tostring(lua, -1));
|
||||||
|
|
||||||
lua_close(lua);
|
lua_close(lua);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user