Simplify function calls for extensionsTurnedOn().
Lots of places in the code use extensionsTurnedOn(1, ...). This patch introduces a new method, extensionTurnedOn(), for testing if a single extension is turned on.
This commit is contained in:
parent
3a194f7ba4
commit
c4d20e0041
4 changed files with 28 additions and 22 deletions
|
|
@ -227,6 +227,7 @@ public:
|
|||
void requireNotRemoved(TSourceLoc, int queryProfiles, int removedVersion, const char* featureDesc);
|
||||
void requireExtensions(TSourceLoc, int numExtensions, const char* const extensions[], const char* featureDesc);
|
||||
TExtensionBehavior getExtensionBehavior(const char*);
|
||||
bool extensionTurnedOn(const char* const extension);
|
||||
bool extensionsTurnedOn(int numExtensions, const char* const extensions[]);
|
||||
void updateExtensionBehavior(int line, const char* const extension, const char* behavior);
|
||||
void fullIntegerCheck(TSourceLoc, const char* op);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue