 |
Flutter Impeller
|
|
Go to the documentation of this file.
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()
93 #endif // FLUTTER_IMPELLER_BASE_VALIDATION_H_
~ScopedValidationDisable()
ScopedValidationFatal & operator=(const ScopedValidationFatal &)=delete
std::function< bool(const char *message, const char *file, int line)> ValidationFailureCallback
ScopedValidationDisable()
void ImpellerValidationErrorsSetFatal(bool fatal)
bool ImpellerValidationErrorsAreFatal()
ValidationLog(const char *file, int line)
void ImpellerValidationBreak(const char *message, const char *file, int line)
std::ostream & GetStream()
ScopedValidationDisable & operator=(const ScopedValidationDisable &)=delete
void ImpellerValidationErrorsSetCallback(ValidationFailureCallback callback)
Sets a callback that callers (usually tests) can set to intercept validation failures.