#define SANITIZE_THIS(X) likely ((X).sanitize (SANITIZE_ARG, CharP(this)))
#define SANITIZE_THIS2(X,Y) (SANITIZE_THIS (X) && SANITIZE_THIS (Y))
-#define SANITIZE_THIS3(X,Y,Z) (SANITIZE_THIS (X) && SANITIZE_THIS (Y) && SANITIZE_THIS(Z))
#define SANITIZE_BASE(X,B) likely ((X).sanitize (SANITIZE_ARG, B))
inline bool sanitize (SANITIZE_ARG_DEF) {
TRACE_SANITIZE ();
- return SANITIZE_SELF () && SANITIZE_THIS3 (markCoverage, baseCoverage, markArray) &&
- likely (baseArray.sanitize (SANITIZE_ARG, CharP(this), classCount));
+ return SANITIZE_SELF ()
+ && SANITIZE_THIS (markCoverage)
+ && SANITIZE_THIS (baseCoverage)
+ && SANITIZE_THIS (markArray)
+ && likely (baseArray.sanitize (SANITIZE_ARG, CharP(this), classCount));
}
private:
inline bool sanitize (SANITIZE_ARG_DEF) {
TRACE_SANITIZE ();
- return SANITIZE_SELF () && SANITIZE_THIS3 (markCoverage, ligatureCoverage, markArray) &&
- likely (ligatureArray.sanitize (SANITIZE_ARG, CharP(this), classCount));
+ return SANITIZE_SELF ()
+ && SANITIZE_THIS (markCoverage)
+ && SANITIZE_THIS (ligatureCoverage)
+ && SANITIZE_THIS (markArray)
+ && likely (ligatureArray.sanitize (SANITIZE_ARG, CharP(this), classCount));
}
private:
inline bool sanitize (SANITIZE_ARG_DEF) {
TRACE_SANITIZE ();
- return SANITIZE_SELF () && SANITIZE_THIS3 (mark1Coverage, mark2Coverage, mark1Array) &&
- likely (mark2Array.sanitize (SANITIZE_ARG, CharP(this), classCount));
+ return SANITIZE_SELF ()
+ && SANITIZE_THIS (mark1Coverage)
+ && SANITIZE_THIS (mark2Coverage)
+ && SANITIZE_THIS (mark1Array)
+ && likely (mark2Array.sanitize (SANITIZE_ARG, CharP(this), classCount));
}
private:
inline bool sanitize (SANITIZE_ARG_DEF) {
TRACE_SANITIZE ();
- return SANITIZE_THIS3 (coverage, classDef, ruleSet);
+ return SANITIZE_THIS (coverage)
+ && SANITIZE_THIS (classDef)
+ && SANITIZE_THIS (ruleSet);
}
private:
TRACE_SANITIZE ();
if (!SANITIZE (version)) return false;
if (unlikely (version.major != 1)) return false;
- return SANITIZE_THIS3 (scriptList, featureList, lookupList);
+ return SANITIZE_THIS (scriptList)
+ && SANITIZE_THIS (featureList)
+ && SANITIZE_THIS (lookupList);
}
protected: