1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-11-29 12:04:31 +00:00

Require SOL_PROPAGATE_EXCEPTIONS to be off

This commit is contained in:
Evil Eye 2025-09-20 16:07:59 +02:00
parent b0cf148393
commit 3ba702690c
2 changed files with 5 additions and 1 deletions

View file

@ -481,6 +481,7 @@ set(SOL_INCLUDE_DIR ${OpenMW_SOURCE_DIR}/extern/sol3)
set(SOL_CONFIG_DIR ${OpenMW_SOURCE_DIR}/extern/sol_config)
include_directories(
${SOL_CONFIG_DIR}
"."
BEFORE SYSTEM
${MyGUI_INCLUDE_DIRS}
@ -489,7 +490,6 @@ include_directories(
${BULLET_INCLUDE_DIRS}
${LUA_INCLUDE_DIR}
${SOL_INCLUDE_DIR}
${SOL_CONFIG_DIR}
${ICU_INCLUDE_DIRS}
)

View file

@ -15,6 +15,10 @@
#include "scriptscontainer.hpp"
#include "utf8.hpp"
#if SOL_IS_ON(SOL_PROPAGATE_EXCEPTIONS)
#error SOL_PROPAGATE_EXCEPTIONS inhibits error checking
#endif
namespace LuaUtil
{
static VFS::Path::Normalized packageNameToVfsPath(std::string_view packageName, const VFS::Manager& vfs)