Just printf, don't take length
This commit is contained in:
parent
3bc0ecf28c
commit
36dd27bf3f
|
@ -58,9 +58,9 @@
|
||||||
namespace hb { namespace wasm {
|
namespace hb { namespace wasm {
|
||||||
static void
|
static void
|
||||||
debugprint (HB_WASM_EXEC_ENV
|
debugprint (HB_WASM_EXEC_ENV
|
||||||
char *the_string, uint32_t len)
|
char *the_string)
|
||||||
{
|
{
|
||||||
printf("%.*s", (int) len, the_string);
|
printf("%s", the_string);
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
#endif
|
#endif
|
||||||
|
@ -84,7 +84,7 @@ debugprint (HB_WASM_EXEC_ENV
|
||||||
{
|
{
|
||||||
NATIVE_SYMBOL ("(i)i", font_get_face),
|
NATIVE_SYMBOL ("(i)i", font_get_face),
|
||||||
#ifdef HB_DEBUG_WASM
|
#ifdef HB_DEBUG_WASM
|
||||||
NATIVE_SYMBOL ("($i)", debugprint),
|
NATIVE_SYMBOL ("($)", debugprint),
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
#undef NATIVE_SYMBOL
|
#undef NATIVE_SYMBOL
|
||||||
|
|
Loading…
Reference in New Issue