| Flutter Impeller |

Classes | Namespaces | Macros | Functions
validation.h File Reference
`#include <sstream>`
`#include "flutter/fml/macros.h"`

Go to the source code of this file.

## Classes
class | impeller::ValidationLog
struct | impeller::ScopedValidationDisable

## Namespaces
| impeller

## Macros
#define | VALIDATION_LOG ::impeller::ValidationLog{}.GetStream()

## Functions
void | impeller::ImpellerValidationBreak (const char *message)
void | impeller::ImpellerValidationErrorsSetFatal (bool fatal)

## Macro Definition Documentation

## ◆ VALIDATION_LOG

#define VALIDATION_LOG ::impeller::ValidationLog{}.GetStream()

Get a stream to the log Impeller uses for all validation errors. The behavior of these logs is as follows:

- Validation error are completely ignored in the Flutter release runtime-mode.
- In non-release runtime-modes, validation logs are redirected to the Flutter `INFO` log. These logs typically show up when verbose logging is enabled.
- If `ImpellerValidationErrorsSetFatal` is set to `true`, validation logs are fatal. The runtime-mode restriction still applies. This usually happens in test environments.

Definition at line 60 of file validation.h.