The Warning type.
More...
#include <Warning.h>
The Warning type.
Definition at line 50 of file Warning.h.
◆ _Warning()
| Class * _Warning |
( |
void |
| ) |
|
The Warning archetype.
- Returns
- The Warning Class.
Definition at line 97 of file Warning.c.
97 {
98 static Class *clazz;
99 static Once once;
100
101 do_once(&once, {
102 clazz = _initialize(&(const ClassDef) {
103 .name = "Warning",
104 .superclass = _Object(),
105 .instanceSize =
sizeof(
Warning),
107 .interfaceSize = sizeof(WarningInterface),
109 });
110 });
111
112 return clazz;
113}
static void initialize(Class *clazz)
WarningInterface * interface
The interface.
◆ initWithFormat()
Initializes this Warning with the given type and format string.
- Parameters
-
| self | The Warning. |
| type | The WarningType. |
| fmt | The format string. |
- Returns
- The initialized Warning, or
NULL on error.
Definition at line 50 of file Warning.c.
50 {
51
52 va_list args;
53 va_start(args, fmt);
54
56
57 va_end(args);
58
59 return self;
60}
Warning * initWithVaList(Warning *self, WarningType type, const char *fmt, va_list args)
Initializes this Warning with the given type and format string.
WarningType type
The WarningType.
◆ initWithVaList()
Initializes this Warning with the given type and format string.
- Parameters
-
| self | The Warning. |
| type | The WarningType. |
| fmt | The format string. |
| args | The format arguments . |
- Returns
- The initialized Warning, or
NULL on error.
Definition at line 66 of file Warning.c.
66 {
67
69 if (self) {
72
75 }
76
77 return self;
78}
static View * init(View *self)
String * message
The message.
◆ interface
| WarningInterface* Warning::interface |
|
protected |
The interface.
Definition at line 61 of file Warning.h.
◆ message
◆ object
The superclass.
Definition at line 55 of file Warning.h.
◆ type
The WarningType.
Definition at line 66 of file Warning.h.
The documentation for this struct was generated from the following files: