forked from len0rd/rockbox
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
This commit is contained in:
parent
3e504c3dcd
commit
c7f26de2bf
2 changed files with 3 additions and 3 deletions
|
@ -758,6 +758,6 @@ union luai_Cast { double l_d; long l_l; };
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "rockconf.h"
|
#include "rockconf.h"
|
||||||
|
#define LUAC_TRUST_BINARIES
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -28,8 +28,8 @@ typedef struct {
|
||||||
} LoadState;
|
} LoadState;
|
||||||
|
|
||||||
#ifdef LUAC_TRUST_BINARIES
|
#ifdef LUAC_TRUST_BINARIES
|
||||||
#define IF(c,s)
|
#define IF(c,s) if (c) error(S,s)
|
||||||
#define error(S,s)
|
#define error(S,s) {(void) S; (void) s;}
|
||||||
#else
|
#else
|
||||||
#define IF(c,s) if (c) error(S,s)
|
#define IF(c,s) if (c) error(S,s)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue