From 2d55470e1017cfff4d27a581e005965d21440585 Mon Sep 17 00:00:00 2001 From: Quentin Date: Wed, 21 Feb 2024 13:02:29 +0100 Subject: [PATCH] lua: allow functions to be called without giving all of its args (#2744) This makes usage of native functions that normally use pointer args easier to deal with. --- src/common.hpp | 3 +-- src/lua/sol_include.hpp | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 src/lua/sol_include.hpp diff --git a/src/common.hpp b/src/common.hpp index f45420d7..affef3e9 100644 --- a/src/common.hpp +++ b/src/common.hpp @@ -61,8 +61,7 @@ #include "services/notifications/notification_service.hpp" #include "services/translation_service/translation_service.hpp" -#define SOL_ALL_SAFETIES_ON 1 -#include "lua/sol.hpp" +#include "lua/sol_include.hpp" #include