Handbook
Glossary
def-record-type ( record -- )
Vocabulary
gobject-introspection
.
ffi
Inputs
record
an
object
Outputs
None
Definition
USING:
accessors
alien.c-types
classes.parser
classes.struct
kernel
sequences
;
IN:
gobject-introspection.ffi
:
def-record-type
( record -- )
dup
fields>>
[
[
c-type>>
create-class-in
]
[
fields>>
[
field>struct-slot
]
map
]
bi
define-struct-class
]
[
c-type>>
void
def-c-type
]
if
;