diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2014-02-15 15:18:09 +0100 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2014-02-15 15:18:09 +0100 |
commit | 6d4668bdaf393aa45d9adb640774f998c6b4aa58 (patch) | |
tree | 29c84032a504246770a26f2c5df44c54db863568 /src/parser.h | |
parent | a0be14cce5ba22614d92712b44d609c73d066892 (diff) | |
download | sciteco-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.h | 8 |
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) |