1 #include "core__error.sep.0.h"
2 /* method error$Error$message for (self: Error): String */
3 val
* core___core__Error___message(val
* self
) {
4 val
* var
/* : String */;
5 val
* var1
/* : String */;
6 var1
= self
->attrs
[COLOR_core__error__Error___message
].val
; /* _message on <self:Error> */
7 if (unlikely(var1
== NULL
)) {
8 if(catchStack
.cursor
>= 0){
9 longjmp(catchStack
.envs
[catchStack
.cursor
], 1);
11 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _message");
12 PRINT_ERROR(" (%s:%d)\n", FILE_core__error
, 19);
19 /* method error$Error$message= for (self: Error, String) */
20 void core___core__Error___message_61d(val
* self
, val
* p0
) {
21 self
->attrs
[COLOR_core__error__Error___message
].val
= p0
; /* _message on <self:Error> */
24 /* method error$Error$to_s for (self: Error): String */
25 val
* core___core__Error___core__abstract_text__Object__to_s(val
* self
) {
26 val
* var
/* : String */;
27 val
* var1
/* : String */;
28 val
* var3
/* : String */;
30 { /* Inline error$Error$message (self) on <self:Error> */
31 var3
= self
->attrs
[COLOR_core__error__Error___message
].val
; /* _message on <self:Error> */
32 if (unlikely(var3
== NULL
)) {
33 if(catchStack
.cursor
>= 0){
34 longjmp(catchStack
.envs
[catchStack
.cursor
], 1);
36 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _message");
37 PRINT_ERROR(" (%s:%d)\n", FILE_core__error
, 19);
49 /* method error$Error$init for (self: Error) */
50 void core___core__Error___core__kernel__Object__init(val
* self
) {
52 ((void(*)(val
* self
))(self
->class->vft
[COLOR_core___core__Error___core__kernel__Object__init
]))(self
); /* init on <self:Error>*/