5 Functions

Procedure: get-major-version ⇒ %return

Returns the major version number of the JavaScriptCore library. (e.g. in JavaScriptCore version 1.8.3 this is 1.)

This function is in the library, so it represents the JavaScriptCore library your code is running against. Contrast with the JSC_MAJOR_VERSION macro, which represents the major version of the JavaScriptCore headers you have included when compiling your code.

%return

Returned: an unsigned 32-bit integer.

the major version number of the JavaScriptCore library

Procedure: get-micro-version ⇒ %return

Returns the micro version number of the JavaScriptCore library. (e.g. in JavaScriptCore version 1.8.3 this is 3.)

This function is in the library, so it represents the JavaScriptCore library your code is running against. Contrast with the JSC_MICRO_VERSION macro, which represents the micro version of the JavaScriptCore headers you have included when compiling your code.

%return

Returned: an unsigned 32-bit integer.

the micro version number of the JavaScriptCore library

Procedure: get-minor-version ⇒ %return

Returns the minor version number of the JavaScriptCore library. (e.g. in JavaScriptCore version 1.8.3 this is 8.)

This function is in the library, so it represents the JavaScriptCore library your code is running against. Contrast with the JSC_MINOR_VERSION macro, which represents the minor version of the JavaScriptCore headers you have included when compiling your code.

%return

Returned: an unsigned 32-bit integer.

the minor version number of the JavaScriptCore library

Procedure: options-foreach function

Iterates all available options calling function for each one. Iteration can stop early if function returns #f.

function

Passed: a procedure.

a JSCOptionsFunc callback

See JSCOptionsFunc for how it is called.

user-data

Not passed: guile-gi supplies it.

callback user data

Procedure: options-get-boolean option ⇒ %return value

Get option as a gboolean value.

option

Passed: a string.

the option identifier

%return

Returned: a boolean.

#t if value has been set or #f if the option doesn’t exist

value

Returned: a boolean.

return location for the option value

Procedure: options-get-double option ⇒ %return value

Get option as a gdouble value.

option

Passed: a string.

the option identifier

%return

Returned: a boolean.

#t if value has been set or #f if the option doesn’t exist

value

Returned: a real number.

return location for the option value

Procedure: options-get-int option ⇒ %return value

Get option as a gint value.

option

Passed: a string.

the option identifier

%return

Returned: a boolean.

#t if value has been set or #f if the option doesn’t exist

value

Returned: a 32-bit integer.

return location for the option value

Procedure: options-get-option-group ⇒ %return

Create a <GOptionGroup> to handle JSCOptions as command line arguments. The options will be exposed as command line arguments with the form –jsc-&lt;option&gt;=&lt;value&gt;. Each entry in the returned <GOptionGroup> is configured to apply the corresponding option during command line parsing. Applications only need to pass the returned group to g_option_context_add_group(), and the rest will be taken care for automatically.

%return

Returned: a <GOptionGroup>.

a <GOptionGroup> for the JSCOptions

Procedure: options-get-range-string option ⇒ %return value

Get option as a range string. The string must be in the format [!]&lt;low&gt;[:&lt;high&gt;] where low and high are guint values. Values between low and high (both included) will be considered in the range, unless ! is used to invert the range.

option

Passed: a string.

the option identifier

%return

Returned: a boolean.

#t if value has been set or #f if the option doesn’t exist

value

Returned: a string.

return location for the option value

Procedure: options-get-size option ⇒ %return value

Get option as a gsize value.

option

Passed: a string.

the option identifier

%return

Returned: a boolean.

#t if value has been set or #f if the option doesn’t exist

value

Returned: an unsigned 64-bit integer.

return location for the option value

Procedure: options-get-string option ⇒ %return value

Get option as a string.

option

Passed: a string.

the option identifier

%return

Returned: a boolean.

#t if value has been set or #f if the option doesn’t exist

value

Returned: a string.

return location for the option value

Procedure: options-get-uint option ⇒ %return value

Get option as a guint value.

option

Passed: a string.

the option identifier

%return

Returned: a boolean.

#t if value has been set or #f if the option doesn’t exist

value

Returned: an unsigned 32-bit integer.

return location for the option value

Procedure: options-set-boolean? option value ⇒ %return

Set option as a gboolean value.

option

Passed: a string.

the option identifier

value

Passed: a boolean.

the value to set

%return

Returned: a boolean.

#t if option was correctly set or #f otherwise.

Procedure: options-set-double? option value ⇒ %return

Set option as a gdouble value.

option

Passed: a string.

the option identifier

value

Passed: a real number.

the value to set

%return

Returned: a boolean.

#t if option was correctly set or #f otherwise.

Procedure: options-set-int? option value ⇒ %return

Set option as a gint value.

option

Passed: a string.

the option identifier

value

Passed: a 32-bit integer.

the value to set

%return

Returned: a boolean.

#t if option was correctly set or #f otherwise.

Procedure: options-set-range-string? option value ⇒ %return

Set option as a range string. The string must be in the format [!]&lt;low&gt;[:&lt;high&gt;] where low and high are guint values. Values between low and high (both included) will be considered in the range, unless ! is used to invert the range.

option

Passed: a string.

the option identifier

value

Passed: a string.

the value to set

%return

Returned: a boolean.

#t if option was correctly set or #f otherwise.

Procedure: options-set-size? option value ⇒ %return

Set option as a gsize value.

option

Passed: a string.

the option identifier

value

Passed: an unsigned 64-bit integer.

the value to set

%return

Returned: a boolean.

#t if option was correctly set or #f otherwise.

Procedure: options-set-string? option value ⇒ %return

Set option as a string.

option

Passed: a string.

the option identifier

value

Passed: a string.

the value to set

%return

Returned: a boolean.

#t if option was correctly set or #f otherwise.

Procedure: options-set-uint? option value ⇒ %return

Set option as a guint value.

option

Passed: a string.

the option identifier

value

Passed: an unsigned 32-bit integer.

the value to set

%return

Returned: a boolean.

#t if option was correctly set or #f otherwise.