From 4dfd87d6ad16abf3e3d055654058cada99f21155 Mon Sep 17 00:00:00 2001 From: ruki Date: Fri, 25 Oct 2024 00:48:39 +0800 Subject: [PATCH] add dump stub --- core/src/xmake/utils/bin2c.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/core/src/xmake/utils/bin2c.c b/core/src/xmake/utils/bin2c.c index ace4c51a45..1e0704070f 100644 --- a/core/src/xmake/utils/bin2c.c +++ b/core/src/xmake/utils/bin2c.c @@ -30,6 +30,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);