summaryrefslogtreecommitdiff
path: root/libtnsl/src/reflect/type.tnsl
blob: 2ed00164d408aaa39b4c5da13a769a38614cc287 (plain)
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
/##
	Copyright 2021 Kyle Gunger

	Dual licensed under the CDDL 1.0 and BSD 3-Clause licenses.

	This file may only be used in accordance with one of the two
	licenses.  You should have received a copy of each license with
	the source code.  In the event that you did not recieve a copy
	of the licenses, they may be found at the following URLs:

	CDDL 1.0:
	https://opensource.org/licenses/CDDL-1.0

	BSD 3-Clause:
	https://opensource.org/licenses/BSD-3-Clause

	THIS SOFTWARE/SOURCE CODE IS PROVIDED "AS IS" WITH NO
	WARRANTY, GUARANTEE, OR CLAIM OF FITNESS FOR ANY PURPOSE
	EXPRESS OR IMPLIED
#/

; raw struct _type_header {
	uint
		_lib_index,
		_type_index,
	
	~{}_type_header
		_generic_list
}

; raw struct _method {
	~void
		address
}

; raw struct _type {
	~{}int
		_offsets,

	~{}uint
		_super_offsets,
	
	~{}_type
		_supers,
	
	~{}_method
		_methods
}

/; method _type_header

	/; _is (_type_header base)
	;/

	/; _get_method ()
	;/
;/