| 250 | { |
| 251 | template<size_t size> |
| 252 | static bool createTokensFromString(TokenList& tokenlist, const char (&code)[size], const std::string& file) |
| 253 | { |
| 254 | if (tokenlist.front()) |
| 255 | throw std::runtime_error("token list is not empty"); |
| 256 | tokenlist.appendFileIfNew(file); |
| 257 | return tokenlist.createTokensFromString(code); |
| 258 | } |
| 259 | }; |
| 260 | |
| 261 | #endif // helpersH |