Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
SkSLErrorReporter.cpp
Go to the documentation of this file.
1/*
2 * Copyright 2021 Google LLC.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
9
13
14namespace SkSL {
15
16void ErrorReporter::error(Position position, std::string_view msg) {
18 // Don't report errors on poison values.
19 return;
20 }
21 ++fErrorCount;
22 this->handleError(msg, position);
23}
24
26 SK_ABORT("%.*s", (int)msg.length(), msg.data());
27}
28
29} // namespace SkSL
SkPoint pos
#define SK_ABORT(message,...)
Definition SkAssert.h:70
static constexpr const char POISON_TAG[]
void error(Position position, std::string_view msg)
virtual void handleError(std::string_view msg, Position position)=0
void handleError(std::string_view msg, Position pos) override
constexpr bool contains(std::string_view str, std::string_view needle)