mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-28 12:30:46 +00:00
- added a list compare function to FScanner.
This commit is contained in:
parent
2c3041081d
commit
c98f7d304b
1 changed files with 5 additions and 0 deletions
|
@ -131,6 +131,11 @@ public:
|
||||||
void UnGet();
|
void UnGet();
|
||||||
|
|
||||||
bool Compare(const char *text);
|
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 MatchString(const char * const *strings, size_t stride = sizeof(char*));
|
||||||
int MustMatchString(const char * const *strings, size_t stride = sizeof(char*));
|
int MustMatchString(const char * const *strings, size_t stride = sizeof(char*));
|
||||||
int GetMessageLine();
|
int GetMessageLine();
|
||||||
|
|
Loading…
Reference in a new issue