#ifndef OPENMW_COMPONENTS_SETTINGS_CATEGORIES_LUA_H #define OPENMW_COMPONENTS_SETTINGS_CATEGORIES_LUA_H #include "components/settings/sanitizerimpl.hpp" #include "components/settings/settingvalue.hpp" #include #include #include #include #include #include namespace Settings { struct LuaCategory { SettingValue mLuaDebug{ "Lua", "lua debug" }; SettingValue mLuaNumThreads{ "Lua", "lua num threads", makeEnumSanitizerInt({ 0, 1 }) }; SettingValue mLuaProfiler{ "Lua", "lua profiler" }; SettingValue mSmallAllocMaxSize{ "Lua", "small alloc max size" }; SettingValue mMemoryLimit{ "Lua", "memory limit" }; SettingValue mLogMemoryUsage{ "Lua", "log memory usage" }; SettingValue mInstructionLimitPerCall{ "Lua", "instruction limit per call", makeMaxSanitizerUInt64(1001) }; SettingValue mGcStepsPerFrame{ "Lua", "gc steps per frame", makeMaxSanitizerInt(0) }; }; } #endif