Files
termux-packages/packages/plutolang/src-luaconf.h.patch
termux-pacman-bot 4016d432db bump,enhance(main/plutolang): bump to 0.8.0
Features enabled in luaconf.h:
- PLUTO_USE_COLORED_OUTPUT // To enable colored output on warning and
  error.
- PLUTO_FORCE_JUMPTABLE // Enable force jumptable, improve performance.
2023-12-22 20:01:17 +00:00

32 lines
1.0 KiB
Diff

diff --git a/src/luaconf.h b/src/luaconf.h
index 5c80b94..1affdec 100644
--- a/src/luaconf.h
+++ b/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.