add dump stub

This commit is contained in:
ruki 2024-10-25 00:48:39 +08:00
parent 179a663c2a
commit 4dfd87d6ad
1 changed files with 15 additions and 0 deletions

View File

@ -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);