Top |
void seed_value_unprotect (SeedContext ctx
,SeedValue value
);
Decrements the "protection count" of value
, as explained in
seed_value_protect()
.
void seed_value_protect (SeedContext ctx
,SeedValue value
);
Increments the "protection count" of value
, in case you want to store
a reference somewhere where the garbage collector won't be able to find it,
and don't want it to be collected!
In order for value
to be collected afterwards, it will need to be
unprotected the same number of times with seed_value_unprotect()
.
gboolean seed_value_is_undefined (SeedContext ctx
,SeedValue value
);
Determine whether or not value
represents the JavaScript undefined value
gboolean seed_value_is_null (SeedContext ctx
,SeedValue value
);
Determine whether or not value
represents the JavaScript null value
gboolean seed_value_is_function (SeedContext ctx
,SeedObject value
);
Determine whether or not value
is a JavaScript function (and, therefore,
an object)
gboolean seed_value_is_number (SeedContext ctx
,SeedValue value
);
Determine whether or not value
is a JavaScript number
gboolean seed_value_is_string (SeedContext ctx
,SeedValue value
);
Determine whether or not value
is a JavaScript string
gboolean seed_value_is_object_of_class (SeedContext ctx
,SeedValue value
,SeedClass klass
);
Determine whether or not value
is an object of the specified class
gboolean seed_value_is_object (SeedContext ctx
,SeedValue value
);
Determine whether or not value
is a JavaScript object