- added a list compare function to FScanner.

This commit is contained in:
Christoph Oelckers 2020-09-15 21:21:16 +02:00
parent 2c3041081d
commit c98f7d304b

View file

@ -131,6 +131,11 @@ public:
void UnGet();
bool Compare(const char *text);
inline bool Compare(const std::initializer_list<const char*>& list)
{
for (auto c : list) if (Compare(c)) return true;
return false;
}
int MatchString(const char * const *strings, size_t stride = sizeof(char*));
int MustMatchString(const char * const *strings, size_t stride = sizeof(char*));
int GetMessageLine();