javascriptcore.global

Global functions for javascriptcore6 library

Members

Functions

getMajorVersion
uint getMajorVersion()

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

getMicroVersion
uint getMicroVersion()

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

getMinorVersion
uint getMinorVersion()

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

optionsForeach
void optionsForeach(javascriptcore.types.OptionsFunc function_)

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

optionsGetBoolean
bool optionsGetBoolean(string option, bool value)

Get option as a #gboolean value.

optionsGetDouble
bool optionsGetDouble(string option, double value)

Get option as a #gdouble value.

optionsGetInt
bool optionsGetInt(string option, int value)

Get option as a #gint value.

optionsGetOptionGroup
glib.option_group.OptionGroup optionsGetOptionGroup()

Create a #GOptionGroup to handle JSCOptions as command line arguments. The options will be exposed as command line arguments with the form <emphasis>--jsc-&lt;option&gt;=&lt;value&gt;</emphasis>. 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 glib.option_context.OptionContext.addGroup, and the rest will be taken care for automatically.

optionsGetRangeString
bool optionsGetRangeString(string option, string value)

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

optionsGetSize
bool optionsGetSize(string option, size_t value)

Get option as a #gsize value.

optionsGetString
bool optionsGetString(string option, string value)

Get option as a string.

optionsGetUint
bool optionsGetUint(string option, uint value)

Get option as a #guint value.

optionsSetBoolean
bool optionsSetBoolean(string option, bool value)

Set option as a #gboolean value.

optionsSetDouble
bool optionsSetDouble(string option, double value)

Set option as a #gdouble value.

optionsSetInt
bool optionsSetInt(string option, int value)

Set option as a #gint value.

optionsSetRangeString
bool optionsSetRangeString(string option, string value)

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

optionsSetSize
bool optionsSetSize(string option, size_t value)

Set option as a #gsize value.

optionsSetString
bool optionsSetString(string option, string value)

Set option as a string.

optionsSetUint
bool optionsSetUint(string option, uint value)

Set option as a #guint value.