5 #ifndef FLUTTER_IMPELLER_BASE_VALIDATION_H_
6 #define FLUTTER_IMPELLER_BASE_VALIDATION_H_
22 const char* file_ =
nullptr;
24 std::ostringstream stream_;
42 std::function<bool(
const char* message,
const char* file,
int line)>;
91 #define VALIDATION_LOG ::impeller::ValidationLog{__FILE__, __LINE__}.GetStream()
ValidationLog(const char *file, int line)
std::ostream & GetStream()
std::function< bool(const char *message, const char *file, int line)> ValidationFailureCallback
void ImpellerValidationBreak(const char *message, const char *file, int line)
void ImpellerValidationErrorsSetCallback(ValidationFailureCallback callback)
Sets a callback that callers (usually tests) can set to intercept validation failures.
bool ImpellerValidationErrorsAreFatal()
void ImpellerValidationErrorsSetFatal(bool fatal)
~ScopedValidationDisable()
ScopedValidationDisable()
ScopedValidationDisable(const ScopedValidationDisable &)=delete
ScopedValidationDisable & operator=(const ScopedValidationDisable &)=delete
ScopedValidationFatal & operator=(const ScopedValidationFatal &)=delete
ScopedValidationFatal(const ScopedValidationFatal &)=delete