mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-12 14:40:00 -06:00
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:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user