Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
dart::Expect Class Reference

#include <assert.h>

Inheritance diagram for dart::Expect:
dart::DynamicAssertionHelper

Public Member Functions

 Expect (const char *file, int line)
 
void Fail (const char *format,...) const PRINTF_ATTRIBUTE(2
 
- Public Member Functions inherited from dart::DynamicAssertionHelper
 DynamicAssertionHelper (const char *file, int line)
 

Static Public Member Functions

void static bool failed ()
 

Additional Inherited Members

- Protected Member Functions inherited from dart::DynamicAssertionHelper
void Print (const char *format, va_list arguments, bool will_abort=false) const
 
 DISALLOW_IMPLICIT_CONSTRUCTORS (DynamicAssertionHelper)
 
- Protected Attributes inherited from dart::DynamicAssertionHelper
const char *const file_
 
const int line_
 

Detailed Description

Definition at line 53 of file assert.h.

Constructor & Destructor Documentation

◆ Expect()

dart::Expect::Expect ( const char *  file,
int  line 
)
inline

Definition at line 55 of file assert.h.

55: DynamicAssertionHelper(file, line) {}
DynamicAssertionHelper(const char *file, int line)
Definition assert.h:29

Member Function Documentation

◆ Fail()

void dart::Expect::Fail ( const char *  format,
  ... 
) const

Definition at line 58 of file assert.cc.

58 {
59 va_list arguments;
60 va_start(arguments, format);
61 Print(format, arguments);
62 va_end(arguments);
63
64 // Wait until the program is exiting before producing a non-zero exit
65 // code through abort.
66 failed_ = true;
67}
void Print(const char *format, va_list arguments, bool will_abort=false) const
Definition assert.cc:19
uint32_t uint32_t * format
va_start(args, format)
va_end(args)

◆ failed()

void static bool dart::Expect::failed ( )
inlinestatic

Definition at line 94 of file assert.h.

94{ return failed_; }

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