aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/parser.h
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2014-02-15 15:18:09 +0100
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2014-02-15 15:18:09 +0100
commit6d4668bdaf393aa45d9adb640774f998c6b4aa58 (patch)
tree29c84032a504246770a26f2c5df44c54db863568 /src/parser.h
parenta0be14cce5ba22614d92712b44d609c73d066892 (diff)
downloadsciteco-6d4668bdaf393aa45d9adb640774f998c6b4aa58.tar.gz
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
Diffstat (limited to 'src/parser.h')
-rw-r--r--src/parser.h8
1 files changed, 7 insertions, 1 deletions
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)