Handbook
Glossary
unbox-parameter ( src c-type -- vregs reps )
Vocabulary
compiler
.
cfg
.
builder
.
alien
.
boxing
Inputs
src
an
object
c-type
an
object
Outputs
vregs
an
object
reps
an
object
Definition
IN:
compiler.cfg.builder.alien.boxing
GENERIC:
unbox-parameter
( src c-type -- vregs reps )
Methods
USING:
alien.c-types
compiler.cfg.builder.alien.boxing
;
M:
c-type
unbox-parameter
unbox
;
USING:
alien.c-types
compiler.cfg.builder.alien.boxing
;
M:
long-long-type
unbox-parameter
unbox
;
USING:
alien.c-types
arrays
assocs
classes.struct
compiler.cfg.builder.alien.boxing
compiler.cfg.hats
cpu.architecture
kernel
layouts
;
M:
struct-c-type
unbox-parameter
dup
value-struct?
[
unbox
]
[
[
nip
heap-size
cell
f
^^local-allot
dup
]
[
[
^^unbox-any-c-ptr
]
dip
explode-struct
keys
]
2bi
implode-struct
1array
{
{
int-rep
f
f
}
}
]
if
;