From cd18b4fcc1f23056deb977216992deaf537d262b Mon Sep 17 00:00:00 2001 From: Rich Geldreich Date: Tue, 30 Apr 2019 20:53:18 -0700 Subject: [PATCH] update readme --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 3b4d06d..feae53c 100644 --- a/README.md +++ b/README.md @@ -45,12 +45,12 @@ On browsers that don't support BC1 (Firefox is one), there's a low-quality fallb Note that I was unable to disable assertions when compiling the transcoder in release (-O2), and I'm not sure why yet. Currently, basisu.h forcefully disables the assert() macro, which is ugly but works: -`#if defined(__EMSCRIPTEN__) && !defined(_DEBUG) && !defined(DEBUG) -// HUGE HACK: I've been unable to disable assertions using emcc -O2 -s ASSERTIONS=0, no idea why. -// We definitely don't want them enabled in release. -#undef assert -#define assert(x) ((void)0) -#endif` +`#if defined(__EMSCRIPTEN__) && !defined(_DEBUG) && !defined(DEBUG)` +`// HUGE HACK: I've been unable to disable assertions using emcc -O2 -s ASSERTIONS=0, no idea why. ` +`// We definitely don't want them enabled in release.` +`#undef assert` +`#define assert(x) ((void)0)` +`#endif` ### Transcoder details