Skip to content

Commit

Permalink
add dump stub
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi committed Oct 24, 2024
1 parent 179a663 commit 4dfd87d
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions core/src/xmake/utils/bin2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit 4dfd87d

Please sign in to comment.