Handbook
Glossary
parse-const-value ( str data-type -- value )
Vocabulary
gobject-introspection
.
ffi
Inputs
str
an
object
data-type
an
object
Outputs
value
an
object
Definition
IN:
gobject-introspection.ffi
GENERIC:
parse-const-value
( str data-type -- value )
Methods
USING:
accessors
combinators
gobject-introspection.ffi
gobject-introspection.types
kernel
math.parser
;
M:
atomic-type
parse-const-value
name>>
{
{
[
dup
number-type?
]
[
drop
string>number
]
}
{
[
dup
"gboolean"
=
]
[
drop
"true"
=
]
}
}
cond
;
USING:
gobject-introspection.ffi
gobject-introspection.types
kernel
;
M:
utf8-type
parse-const-value
drop
;