mirror of https://github.com/xmake-io/xmake.git
add dump stub
This commit is contained in:
parent
179a663c2a
commit
4dfd87d6ad
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue