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