diff options
| -rw-r--r-- | core/src/xmake/utils/bin2c.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/core/src/xmake/utils/bin2c.c b/core/src/xmake/utils/bin2c.c index ace4c51a4..1e0704070 100644 --- a/core/src/xmake/utils/bin2c.c +++ b/core/src/xmake/utils/bin2c.c @@ -31,6 +31,14 @@ #include "prefix.h" /* ////////////////////////////////////////////////////////////////////////////////////// + * private implementation + */ +static tb_bool_t xm_utils_bin2c_dump(tb_stream_ref_t istream, tb_stream_ref_t ostream, tb_int_t linewidth, tb_bool_t nozeroend) +{ + return tb_true; +} + +/* ////////////////////////////////////////////////////////////////////////////////////// * implementation */ @@ -81,6 +89,13 @@ tb_int_t xm_utils_bin2c(lua_State* lua) break; } + if (!xm_utils_bin2c_dump(istream, ostream, linewidth, nozeroend)) + { + lua_pushboolean(lua, tb_false); + lua_pushfstring(lua, "bin2c: dump data failed"); + break; + } + ok = tb_true; lua_pushboolean(lua, ok); |
