- [FIX] deshabilitar el debugger si no estem en DEBUG ni en Linux

This commit is contained in:
2026-05-01 12:10:11 +02:00
parent 948870215d
commit 90f057fc5e
2 changed files with 12 additions and 0 deletions

View File

@@ -1,3 +1,5 @@
#if defined(DEBUG) && defined(__linux__)
#include "lua.debug.h" #include "lua.debug.h"
#include "external/lua/lua.hpp" #include "external/lua/lua.hpp"
#include "mini/win/win.h" #include "mini/win/win.h"
@@ -1366,3 +1368,5 @@ namespace mini
} }
} }
} }
#endif

View File

@@ -7,11 +7,19 @@ namespace mini
{ {
namespace debug namespace debug
{ {
#if defined(DEBUG) && defined(__linux__)
bool call_and_handle_exceptions(lua_State* L); bool call_and_handle_exceptions(lua_State* L);
void init(lua_State* L); void init(lua_State* L);
void kill_thread(); void kill_thread();
void process_commands(lua_State* L); void process_commands(lua_State* L);
void toggle(lua_State* L); void toggle(lua_State* L);
#else
bool call_and_handle_exceptions(lua_State* L) { return true; };
void init(lua_State* L) {};
void kill_thread() {};
void process_commands(lua_State* L) {};
void toggle(lua_State* L) {};
#endif
} }
} }