Skip to content

Commit

Permalink
Fix 'print' function.
Browse files Browse the repository at this point in the history
  • Loading branch information
philmoz committed Oct 6, 2024
1 parent 306cbe0 commit f00384c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions radio/src/thirdparty/Lua/src/luaconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -458,4 +458,10 @@
#undef lua_str2number
#define lua_str2number(s,p) ((lua_Number)strtod((s), (p)))

// For print
#include "debug.h"
#define lua_writestring(s,l) TRACE_DEBUG_WP("%s", s);
#define lua_writeline() TRACE_DEBUG_WP("\n");
#define lua_writestringerror(s,p) TRACE_DEBUG_WP(s, p);

#endif

0 comments on commit f00384c

Please sign in to comment.