Merge 167bdf759d into e45b7b4b14
This commit is contained in:
commit
156d1a7972
@ -129,7 +129,7 @@ int main (int argc, char *argv[]) {
|
||||
|
||||
// Connect LuaBind to this lua state
|
||||
luabind::open(myLuaState);
|
||||
|
||||
luaL_openlibs(myLuaState);
|
||||
|
||||
// Now call our function in a lua script
|
||||
INFO("Parsing speedprofile from " << (argc > 3 ? argv[3] : "profile.lua") );
|
||||
|
||||
@ -83,10 +83,10 @@ int main (int argc, char *argv[]) {
|
||||
|
||||
// Connect LuaBind to this lua state
|
||||
luabind::open(myLuaState);
|
||||
luaL_openlibs(myLuaState);
|
||||
|
||||
// Add our function to the state's global scope
|
||||
luabind::module(myLuaState) [
|
||||
luabind::def("print", LUA_print<std::string>),
|
||||
luabind::def("parseMaxspeed", parseMaxspeed),
|
||||
luabind::def("durationIsValid", durationIsValid),
|
||||
luabind::def("parseDuration", parseDuration)
|
||||
@ -144,9 +144,6 @@ int main (int argc, char *argv[]) {
|
||||
ERR(lua_tostring(myLuaState,-1)<< " occured in scripting block");
|
||||
}
|
||||
|
||||
//open utility libraries string library;
|
||||
luaL_openlibs(myLuaState);
|
||||
|
||||
/*** End of Scripting Environment Setup; ***/
|
||||
|
||||
unsigned amountOfRAM = 1;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user