#include <assert.h>
#include "Warning.h"
Go to the source code of this file.
◆ _Class
◆ _Warning()
| Class * _Warning |
( |
void |
| ) |
|
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),
106 .interfaceOffset = offsetof(
Warning, interface),
107 .interfaceSize = sizeof(WarningInterface),
109 });
110 });
111
112 return clazz;
113}
static void initialize(Class *clazz)
◆ dealloc()
| static void dealloc |
( |
Object * |
self | ) |
|
|
static |
- See also
- Object::dealloc(Object *)
Definition at line 35 of file Warning.c.
35 {
36
38
39 release(this->message);
40
42}
static void dealloc(Object *self)
◆ initialize()
| static void initialize |
( |
Class * |
clazz | ) |
|
|
static |
- See also
- Class::initialize(Class *)
Definition at line 85 of file Warning.c.
85 {
86
87 ((ObjectInterface *) clazz->interface)->dealloc =
dealloc;
88
89 ((WarningInterface *) clazz->interface)->initWithFormat =
initWithFormat;
91}
static Warning * initWithFormat(Warning *self, WarningType type, const char *fmt,...)
static Warning * initWithVaList(Warning *self, WarningType type, const char *fmt, va_list args)
Warning * initWithVaList(Warning *self, WarningType type, const char *fmt, va_list args)
Initializes this Warning with the given type and format string.
◆ initWithFormat()
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}
◆ initWithVaList()
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.
WarningType type
The WarningType.