diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2013-02-11 18:17:51 +0100 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2013-02-11 18:17:51 +0100 |
commit | 669bdf6ea9739a26d92e745b71945fea43968dea (patch) | |
tree | 6dbb0516b7d0ca168a9e01cfc86d39f50e2c34e3 /src/parser.h | |
parent | 891ee79bc292705dd56035a5dca20d8ff6371e50 (diff) | |
download | sciteco-669bdf6ea9739a26d92e745b71945fea43968dea.tar.gz |
States::is_string() to check whether current state is a string-state
Diffstat (limited to 'src/parser.h')
-rw-r--r-- | src/parser.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/parser.h b/src/parser.h index e810fa4..13b99d4 100644 --- a/src/parser.h +++ b/src/parser.h @@ -242,6 +242,12 @@ namespace States { extern StateInsert insert; extern State *current; + + static inline bool + is_string() + { + return dynamic_cast<StateExpectString *>(current); + } } extern enum Mode { |