mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-06 03:29:44 -06:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user