defunkt (owner)

Revisions

gist: 215828 Download_button fork
public
Public Clone URL: git://gist.github.com/215828.git
Embed All Files: show embed
C #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
/* oke source file, generated with ooc */
#include "oke.h"
 
lang__Void Vector3f___defaults___impl(Vector3f *this)
{
Object___defaults___impl((lang__Object *) this);
}
 
lang__Void Vector3f___destroy___impl(Vector3f *this)
{
}
 
lang__Void Vector3f_init_impl(Vector3f *this)
{
}
 
lang__Class *Vector3f_class()
{
static lang__Bool __done__ = false;
static Vector3fClass class =
{
{
{
.instanceSize = sizeof(Vector3f),
.size = sizeof(void*),
.name = "Vector3f",
},
.__load__ = (lang__Void (*)()) Vector3f___load__,
.__defaults__ = (lang__Void (*)(lang__Object *)) Vector3f___defaults___impl,
.__destroy__ = (lang__Void (*)(lang__Object *)) Vector3f___destroy___impl,
},
.new = Vector3f_new,
.init = Vector3f_init_impl,
};
lang__Class *classPtr = (lang__Class *) &class;
if(!__done__)
{
__done__ = true;
classPtr->super = Object_class();
}
return classPtr;
}
 
 
lang__Void Vector3f___defaults__(Vector3f *this)
{
((lang__ObjectClass *)((lang__Object *)this)->class)->__defaults__((lang__Object *) this);
}
 
 
lang__Void Vector3f___destroy__(Vector3f *this)
{
((lang__ObjectClass *)((lang__Object *)this)->class)->__destroy__((lang__Object *) this);
}
 
 
lang__Void Vector3f_init(Vector3f *this)
{
((Vector3fClass *)((lang__Object *)this)->class)->init((Vector3f *) this);
}
 
 
lang__Void Vector3f___load__()
{
}
 
 
Vector3f *Vector3f_new()
{
Vector3f *this = ((Vector3f *) Class_alloc(Vector3f_class()));
Vector3f_init(this);
return this;
}
 
 
 
lang__Void _oke_load()
{
static lang__Bool __done__ = false;
if (!__done__)
{
__done__ = true;
Vector3f___load__();
_lang_BasicTypes_load();
_lang_ooclib_load();
_lang_stdio_load();
vec = Vector3f_new();
vec->x = 3.14;
vec->y = 6.18;
vec->z = 42.0;
}
}
 
 
int main()
{
_oke_load();
}