From 6d4668bdaf393aa45d9adb640774f998c6b4aa58 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Sat, 15 Feb 2014 15:18:09 +0100 Subject: added EMCurses/Emscripten support by building with Emscripten support, SciTECO may be embedded into web pages. * sciteco.html is not a piece of documentation but a sample SciTECO embedding --- src/parser.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/parser.h') diff --git a/src/parser.h b/src/parser.h index 0b139d9..b96e8d4 100644 --- a/src/parser.h +++ b/src/parser.h @@ -123,7 +123,13 @@ protected: MicroState state; - inline void +#ifdef EMSCRIPTEN + /* FIXME: Shouldn't be required! */ + __attribute__((noinline)) +#else + inline +#endif + void set(MicroState next) { if (next != state) -- cgit v1.2.3