From 1184678086b284944bb119a97ca048b64d4078b6 Mon Sep 17 00:00:00 2001 From: Siddharth Date: Fri, 17 May 2019 21:43:50 +0200 Subject: Allow color API to enable and disable colors (#2111) This is useful for front-ends which wish to selectively enable or disable coloring. Also expose these APIs from the C API. --- src/binaryen-c.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/binaryen-c.h') diff --git a/src/binaryen-c.h b/src/binaryen-c.h index 310ca3a2a..820b23cca 100644 --- a/src/binaryen-c.h +++ b/src/binaryen-c.h @@ -1221,6 +1221,11 @@ BinaryenGetFunctionTypeBySignature(BinaryenModuleRef module, BinaryenType* paramTypes, BinaryenIndex numParams); +// Enable or disable coloring for the WASM printer +void BinaryenSetColorsEnabled(int enabled); + +// Query whether color is enable for the WASM printer +int BinaryenAreColorsEnabled(); #ifdef __cplusplus } // extern "C" #endif -- cgit v1.2.3