0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-01-31 21:22:27 +00:00
termux-packages/packages/libpluto/src-luaconf.h.patch
2024-10-23 06:36:30 +03:00

29 lines
935 B
Diff

+++ ./src/luaconf.h
@@ -221,7 +221,7 @@
#else /* }{ */
-#define LUA_ROOT "/usr/local/"
+#define LUA_ROOT "@TERMUX_PREFIX@/"
#define LUA_LDIR LUA_ROOT "share/lua/" LUA_VDIR "/"
#define LUA_CDIR LUA_ROOT "lib/lua/" LUA_VDIR "/"
@@ -808,7 +808,7 @@
*/
// If defined, Pluto errors will use ANSI color codes.
-//#define PLUTO_USE_COLORED_OUTPUT
+#define PLUTO_USE_COLORED_OUTPUT
// If defined, Pluto will exclude code snippets from error messages to make them shorter.
//#define PLUTO_SHORT_ERRORS
@@ -818,7 +818,7 @@
// If defined, Pluto will use a jumptable in the VM even if not compiled via GCC.
// This will generally improve runtime performance but can add minutes to compile time, depending on the setup.
-//#define PLUTO_FORCE_JUMPTABLE
+#define PLUTO_FORCE_JUMPTABLE
// If defined, Pluto will use C++ exceptions to implement Lua longjumps.
// This is generally slower and complicates exception handling.