Increase the compilation speed (#3545)

- Remove toStringConversion function and move json_helper include out of numericalproperty.inl
  - Optimizing some header files
  - Remove duplicate Lua functions from properties. 
  - Move List,Option,Selection,String, and TriggerProperty into misc folder
  - Move lua_helper include out of inline file
  - Add lua_helper to the precompiled header
  - Declare property functions as final. No longer have OptionProperty derive from IntProperty
  - Remove Dictionary header from properties
This commit is contained in:
Alexander Bock
2025-03-14 11:22:40 +01:00
committed by GitHub
parent 305f0a7d65
commit fc9b2ab091
242 changed files with 1306 additions and 913 deletions

View File

@@ -25,11 +25,12 @@
#ifndef __OPENSPACE_CORE___LUALIBRARY___H__
#define __OPENSPACE_CORE___LUALIBRARY___H__
#include <ghoul/lua/ghoul_lua.h>
#include <filesystem>
#include <string>
#include <vector>
struct lua_State;
namespace openspace::scripting {
/**
@@ -43,6 +44,8 @@ struct LuaLibrary {
* the function.
*/
struct Function {
using lua_CFunction =int(*)(lua_State* L);
/// The name of the function
std::string name;
/// The function pointer that is executed if the function is called