diff options
| author | ruki <[email protected]> | 2024-10-25 00:45:11 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-10-25 00:45:11 +0800 |
| commit | ecf4f21dd34c684e74618c95a4186d889badb5d3 (patch) | |
| tree | 6e72e5d3920283764abd7628c733d9a0ea3848dd /core/src | |
| parent | c92b5d009f2421ee3cda1933c5cac519659785f1 (diff) | |
get linewidth
Diffstat (limited to 'core/src')
| -rw-r--r-- | core/src/xmake/utils/bin2c.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/core/src/xmake/utils/bin2c.c b/core/src/xmake/utils/bin2c.c index 1ce85654c..921793345 100644 --- a/core/src/xmake/utils/bin2c.c +++ b/core/src/xmake/utils/bin2c.c @@ -51,8 +51,16 @@ tb_int_t xm_utils_bin2c(lua_State* lua) tb_char_t const* outputfile = luaL_checkstring(lua, 2); tb_check_return_val(outputfile, 0); + // get line width + tb_int_t linewidth = (tb_int_t)lua_tointeger(lua, 3); + + // no zero end? + tb_bool_t nozeroend = (tb_bool_t)lua_toboolean(lua, 4); + tb_trace_i("binaryfile: %s", binaryfile); tb_trace_i("outputfile: %s", outputfile); + tb_trace_i("linewidth: %d", linewidth); + tb_trace_i("nozeroend: %d", nozeroend); return 0; } |
