summaryrefslogtreecommitdiff
path: root/core/src
diff options
context:
space:
mode:
authorruki <[email protected]>2024-10-25 00:48:39 +0800
committerruki <[email protected]>2024-10-25 00:48:39 +0800
commit4dfd87d6ad16abf3e3d055654058cada99f21155 (patch)
tree72ed36095d6a0af07d0ec88c7be60add017e4d82 /core/src
parent179a663c2a2837b0d0a0784808a1591428d4c3a4 (diff)
add dump stub
Diffstat (limited to 'core/src')
-rw-r--r--core/src/xmake/utils/bin2c.c15
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);