From c7f26de2bfc25865286bfe11b551ff1d3ca7104f Mon Sep 17 00:00:00 2001 From: William Wilgus Date: Thu, 27 Jun 2019 19:19:07 -0500 Subject: lua remove error messages for pre-compiled chunks We don't have the functionality in the viewer to run pre-compiled chunks plus if anyone ever wants to add it its easy enough to remove the define frees 3K Change-Id: I8d2086e04b51e3ce147ab8741a7d354cb9bf1ade --- apps/plugins/lua/luaconf.h | 2 +- apps/plugins/lua/lundump.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/plugins/lua/luaconf.h b/apps/plugins/lua/luaconf.h index 109e680a17..3ed495b207 100644 --- a/apps/plugins/lua/luaconf.h +++ b/apps/plugins/lua/luaconf.h @@ -758,6 +758,6 @@ union luai_Cast { double l_d; long l_l; }; */ #include "rockconf.h" - +#define LUAC_TRUST_BINARIES #endif diff --git a/apps/plugins/lua/lundump.c b/apps/plugins/lua/lundump.c index 8010a45795..6a8422de30 100644 --- a/apps/plugins/lua/lundump.c +++ b/apps/plugins/lua/lundump.c @@ -28,8 +28,8 @@ typedef struct { } LoadState; #ifdef LUAC_TRUST_BINARIES -#define IF(c,s) -#define error(S,s) +#define IF(c,s) if (c) error(S,s) +#define error(S,s) {(void) S; (void) s;} #else #define IF(c,s) if (c) error(S,s) -- cgit v1.2.3