Feature/cmake cleanup (#381)

* Rename OnScreenGui module to ImGui
* Support multiple external module folders (closes #31)
* Cleaning up CMake files
  * Restructure application specification
  * Add parameter for library mode to all modules
  * Add functions to handle global variable state
* Misc/remove warnings (#383)
* Increase build timeout and do a clean rebuild every commit
This commit is contained in:
Alexander Bock
2017-08-14 09:38:32 -04:00
committed by GitHub
parent 0b063827b8
commit c275b2f833
321 changed files with 2201 additions and 1892 deletions

View File

@@ -43,10 +43,6 @@
namespace {
const char* _loggerCat = "ScriptEngine";
const char* LuaGlobalNamespace = "_G";
const char* PrintFunctionName = "print";
//const lua_CFunction _printFunctionReplacement = luascriptfunctions::printInfo;
const int TableOffset = -3; // -1 (top) -1 (first argument) -1 (second argument)
const char* MainTemplateFilename = "${OPENSPACE_DATA}/web/luascripting/main.hbs";
@@ -147,7 +143,7 @@ bool ScriptEngine::hasLibrary(const std::string& name) {
auto it = std::find_if(
_registeredLibraries.begin(),
_registeredLibraries.end(),
[name](const LuaLibrary& it) { return it.name == name; }
[name](const LuaLibrary& i) { return i.name == name; }
);
return (it != _registeredLibraries.end());
}