update readme

This commit is contained in:
Rich Geldreich
2019-04-30 20:53:18 -07:00
committed by GitHub
parent 59fa93f449
commit cd18b4fcc1

View File

@@ -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