Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
SkSL::TestingOnly_AbortErrorReporter Class Reference

#include <SkSLErrorReporter.h>

Inheritance diagram for SkSL::TestingOnly_AbortErrorReporter:
SkSL::ErrorReporter

Public Member Functions

void handleError (std::string_view msg, Position pos) override
 
- Public Member Functions inherited from SkSL::ErrorReporter
 ErrorReporter ()
 
virtual ~ErrorReporter ()
 
void error (Position position, std::string_view msg)
 
std::string_view source () const
 
void setSource (std::string_view source)
 
int errorCount () const
 
void resetErrorCount ()
 

Additional Inherited Members

Detailed Description

Error reporter for tests that need an SkSL context; aborts immediately if an error is reported.

Definition at line 58 of file SkSLErrorReporter.h.

Member Function Documentation

◆ handleError()

void SkSL::TestingOnly_AbortErrorReporter::handleError ( std::string_view  msg,
Position  position 
)
overridevirtual

Called when an error is reported.

Implements SkSL::ErrorReporter.

Definition at line 25 of file SkSLErrorReporter.cpp.

25 {
26 SK_ABORT("%.*s", (int)msg.length(), msg.data());
27}
#define SK_ABORT(message,...)
Definition SkAssert.h:70

The documentation for this class was generated from the following files: