- [FIX] deshabilitar el debugger si no estem en DEBUG ni en Linux
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user