0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-03-03 06:48:20 +00:00
termux-packages/packages/libpluto/src-luaconf.h.patch

29 lines
935 B
Diff
Raw Normal View History

2024-10-23 05:19:55 +03:00
+++ ./src/luaconf.h
@@ -221,7 +221,7 @@
2022-11-30 23:31:25 +09:00
#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.