Handbook
Glossary
alien-value ( c-type -- quot: ( c-ptr offset -- value ) )
Vocabulary
alien
.
c-types
Inputs
c-type
a
c-type-name
Outputs
None
Word description
Loads a value at a byte offset from a base C pointer.
Errors
Throws a
no-c-type
error if the type does not exist.
Definition
USING:
kernel
sequences
;
IN:
alien.c-types
MACRO:
alien-value
( c-type -- quot: ( c-ptr offset -- value ) )
[
c-type-getter
]
[
c-type-boxer-quot
]
bi
append
;