Simple Virtual Machine
A simple but flexible virtual machine
|
This module contains API functions to handle SVM interruption values. More...
Functions | |
SVM_FUNCTION SVM_Value_Interruption | svm_value_interruption_new_internal (const void *svm, const SVM_Interruption_Internal interruption, const SVM_Value_String message, const SVM_Interruption_Kind kind) |
This function creates an interruption the SVM can store in its memories from an interruption type and a string value. More... | |
SVM_FUNCTION SVM_Value_Interruption | svm_value_interruption_new_internal__string (const void *svm, const SVM_Interruption_Internal interruption, const SVM_String message, const SVM_Interruption_Kind kind) |
This function creates an interruption the SVM can store in its memories from an interruption type and a SVM_String. More... | |
SVM_FUNCTION SVM_Value_Interruption | svm_value_interruption_new_internal__raw (const void *svm, const SVM_Interruption_Internal interruption, const char *message, const SVM_Interruption_Kind kind) |
This function creates an interruption the SVM can store in its memories from an interruption type and a C nul-terminated string. More... | |
SVM_FUNCTION SVM_Value_Interruption | svm_value_interruption_new_external (const void *svm, const SVM_Value_PluginEntryPoint name, const SVM_Value_String message) |
This function creates an interruption the SVM can store in its memories from a plugin entry point and a string value. More... | |
SVM_FUNCTION SVM_Value_Interruption | svm_value_interruption_new_external__string (const void *svm, const SVM_Value_PluginEntryPoint name, const SVM_String message) |
This function creates an interruption the SVM can store in its memories from a plugin entry point and a SVM_String. More... | |
SVM_FUNCTION SVM_Value_Interruption | svm_value_interruption_new_external__raw (const void *svm, const SVM_Value_PluginEntryPoint name, const char *message) |
This function creates an interruption the SVM can store in its memories from a plugin entry point and a C nul-terminated string. More... | |
SVM_FUNCTION SVM_Value_Interruption | svm_value_interruption_new_null (const void *svm) |
This function creates an interruption value the SVM can store in its memories without a value. More... | |
SVM_FUNCTION SVM_Boolean | svm_value_type_is_interruption (const void *svm, const SVM_Value value) |
This function checks whether a value contains an interruption. More... | |
SVM_FUNCTION SVM_Boolean | svm_value_interruption_is_internal (const void *svm, const SVM_Value_Interruption interruption) |
This function extracts the interruption type contained in an interruption value. More... | |
SVM_FUNCTION SVM_Boolean | svm_value_interruption_is_external (const void *svm, const SVM_Value_Interruption interruption) |
This function extracts the interruption extension name contained in an interruption value. More... | |
SVM_FUNCTION SVM_Interruption_Internal | svm_value_interruption_get_internal (const void *svm, const SVM_Value_Interruption interruption) |
This function extracts the interruption type contained in an interruption value. More... | |
SVM_FUNCTION SVM_Value_PluginEntryPoint | svm_value_interruption_get_external (const void *svm, const SVM_Value_Interruption interruption) |
This function extracts the interruption extension name contained in an interruption value. More... | |
SVM_FUNCTION SVM_String | svm_value_interruption_get_message (const void *svm, const SVM_Value_Interruption interruption) |
This function extracts the interruption message contained in an interruption value. More... | |
SVM_FUNCTION SVM_Interruption_Kind | svm_value_interruption_get_kind (const void *svm, const SVM_Value_Interruption interruption) |
This function extracts the interruption kind contained in an interruption value. More... | |
SVM_FUNCTION SVM_String | svm_value_interruption_get_location (const void *svm, const SVM_Value_Interruption interruption) |
This function extracts the interruption location contained in an interruption value. More... | |
SVM_FUNCTION void | svm_value_interruption_set (const void *svm, SVM_Value_Interruption value, const SVM_Value_Interruption interruption) |
This function replaces the interruption value by another interruption value. More... | |
SVM_FUNCTION void | svm_value_interruption_set_internal (const void *svm, SVM_Value_Interruption value, const SVM_Interruption_Internal type, const SVM_Value_String message, const SVM_Interruption_Kind kind) |
This function replaces the interruption type, the message and the kind of interruption contained in an interruption value from specific values and a string value message. More... | |
SVM_FUNCTION void | svm_value_interruption_set_internal__string (const void *svm, SVM_Value_Interruption value, const SVM_Interruption_Internal type, const SVM_String message, const SVM_Interruption_Kind kind) |
This function replaces the interruption type, the message and the kind of interruption contained in an interruption value from specific values and a SVM_String message. More... | |
SVM_FUNCTION void | svm_value_interruption_set_internal__raw (const void *svm, SVM_Value_Interruption value, const SVM_Interruption_Internal type, const char *message, const SVM_Interruption_Kind kind) |
This function replaces the interruption type, the message and the kind of interruption contained in an interruption value from specific values and a C nul-terminated string message. More... | |
SVM_FUNCTION void | svm_value_interruption_set_external (const void *svm, SVM_Value_Interruption value, const SVM_Value_PluginEntryPoint name, const SVM_Value_String message) |
This function replaces the interruption name and the message contained in an interruption value from specific values and a string value message. More... | |
SVM_FUNCTION void | svm_value_interruption_set_external__string (const void *svm, SVM_Value_Interruption value, const SVM_Value_PluginEntryPoint name, const SVM_String message) |
This function replaces the interruption name and the message contained in an interruption value from specific values and a SVM_String message. More... | |
SVM_FUNCTION void | svm_value_interruption_set_external__raw (const void *svm, SVM_Value_Interruption value, const SVM_Value_PluginEntryPoint name, const char *message) |
This function replaces the interruption name and the message contained in an interruption value from specific values and a C nul-terminated string message. More... | |
This module contains API functions to handle SVM interruption values.
SVM_FUNCTION SVM_Value_PluginEntryPoint svm_value_interruption_get_external | ( | const void * | svm, |
const SVM_Value_Interruption | interruption | ||
) |
This function extracts the interruption extension name contained in an interruption value.
[in] | svm | The SVM pointer passed as first argument of the callback function. |
[in] | interruption | The interruption value to extract from. |
FAILURE | interruption when a parameter is incorrect. (Please refer to the main description page of this API.) |
FAILURE | interruption when the interruption parameter does not contain an interruption. |
FAILURE | interruption when the interruption is internal. |
SVM_FUNCTION SVM_Interruption_Internal svm_value_interruption_get_internal | ( | const void * | svm, |
const SVM_Value_Interruption | interruption | ||
) |
This function extracts the interruption type contained in an interruption value.
[in] | svm | The SVM pointer passed as first argument of the callback function. |
[in] | interruption | The interruption value to extract from. |
FAILURE | interruption when a parameter is incorrect. (Please refer to the main description page of this API.) |
FAILURE | interruption when the interruption parameter does not contain an interruption. |
FAILURE | interruption when the interruption is external. |
SVM_FUNCTION SVM_Interruption_Kind svm_value_interruption_get_kind | ( | const void * | svm, |
const SVM_Value_Interruption | interruption | ||
) |
This function extracts the interruption kind contained in an interruption value.
[in] | svm | The SVM pointer passed as first argument of the callback function. |
[in] | interruption | The interruption value to extract from. |
FAILURE | interruption when a parameter is incorrect. (Please refer to the main description page of this API.) |
FAILURE | interruption when the interruption parameter does not contain an interruption. |
SVM_FUNCTION SVM_String svm_value_interruption_get_location | ( | const void * | svm, |
const SVM_Value_Interruption | interruption | ||
) |
This function extracts the interruption location contained in an interruption value.
[in] | svm | The SVM pointer passed as first argument of the callback function. |
[in] | interruption | The interruption value to extract from. |
FAILURE | interruption when a parameter is incorrect. (Please refer to the main description page of this API.) |
FAILURE | interruption when the interruption parameter does not contain an interruption. |
SVM_FUNCTION SVM_String svm_value_interruption_get_message | ( | const void * | svm, |
const SVM_Value_Interruption | interruption | ||
) |
This function extracts the interruption message contained in an interruption value.
[in] | svm | The SVM pointer passed as first argument of the callback function. |
[in] | interruption | The interruption value to extract from. |
FAILURE | interruption when a parameter is incorrect. (Please refer to the main description page of this API.) |
FAILURE | interruption when the interruption parameter does not contain an interruption. |
SVM_FUNCTION SVM_Boolean svm_value_interruption_is_external | ( | const void * | svm, |
const SVM_Value_Interruption | interruption | ||
) |
This function extracts the interruption extension name contained in an interruption value.
[in] | svm | The SVM pointer passed as first argument of the callback function. |
[in] | interruption | The interruption value to extract from. |
FAILURE | interruption when a parameter is incorrect. (Please refer to the main description page of this API.) |
FAILURE | interruption when the interruption parameter does not contain an interruption. |
FAILURE | interruption when the interruption is internal. |
SVM_FUNCTION SVM_Boolean svm_value_interruption_is_internal | ( | const void * | svm, |
const SVM_Value_Interruption | interruption | ||
) |
This function extracts the interruption type contained in an interruption value.
[in] | svm | The SVM pointer passed as first argument of the callback function. |
[in] | interruption | The interruption value to extract from. |
FAILURE | interruption when a parameter is incorrect. (Please refer to the main description page of this API.) |
FAILURE | interruption when the interruption parameter does not contain an interruption. |
FAILURE | interruption when the interruption is external. |
SVM_FUNCTION SVM_Value_Interruption svm_value_interruption_new_external | ( | const void * | svm, |
const SVM_Value_PluginEntryPoint | name, | ||
const SVM_Value_String | message | ||
) |
This function creates an interruption the SVM can store in its memories from a plugin entry point and a string value.
[in] | svm | The SVM pointer passed as first argument of the callback function. |
[in] | name | The interruption extended type. |
[in] | message | A string for the SVM user. |
The created interruption has a type defined in a plugin. The interruption type is automatically set to PLUGIN_INTERRUPTION.
FAILURE | interruption when a parameter is incorrect. (Please refer to the main description page of this API.) |
FAILURE | interruption when the name parameter does not identify a plugin interruption. |
SVM_FUNCTION SVM_Value_Interruption svm_value_interruption_new_external__raw | ( | const void * | svm, |
const SVM_Value_PluginEntryPoint | name, | ||
const char * | message | ||
) |
This function creates an interruption the SVM can store in its memories from a plugin entry point and a C nul-terminated string.
[in] | svm | The SVM pointer passed as first argument of the callback function. |
[in] | name | The interruption extended type. |
[in] | message | A string for the SVM user. |
The created interruption has a type defined in a plugin. The interruption type is automatically set to PLUGIN_INTERRUPTION.
FAILURE | interruption when a parameter is incorrect. (Please refer to the main description page of this API.) |
FAILURE | interruption when the name parameter does not identify a plugin interruption. |
SVM_FUNCTION SVM_Value_Interruption svm_value_interruption_new_external__string | ( | const void * | svm, |
const SVM_Value_PluginEntryPoint | name, | ||
const SVM_String | message | ||
) |
This function creates an interruption the SVM can store in its memories from a plugin entry point and a SVM_String.
[in] | svm | The SVM pointer passed as first argument of the callback function. |
[in] | name | The interruption extended type. |
[in] | message | A string for the SVM user. |
The created interruption has a type defined in a plugin. The interruption type is automatically set to PLUGIN_INTERRUPTION.
FAILURE | interruption when a parameter is incorrect. (Please refer to the main description page of this API.) |
FAILURE | interruption when the name parameter does not identify a plugin interruption. |
SVM_FUNCTION SVM_Value_Interruption svm_value_interruption_new_internal | ( | const void * | svm, |
const SVM_Interruption_Internal | interruption, | ||
const SVM_Value_String | message, | ||
const SVM_Interruption_Kind | kind | ||
) |
This function creates an interruption the SVM can store in its memories from an interruption type and a string value.
[in] | svm | The SVM pointer passed as first argument of the callback function. |
[in] | interruption | The interruption code. |
[in] | message | A string for the SVM user. |
[in] | kind | The interruption type. |
The created interruption has an internal type and can be set as an hardware interruption.
FAILURE | interruption when a parameter is incorrect. (Please refer to the main description page of this API.) |
FAILURE | interruption when the interruption is set to PLUGIN_INTERRUPTION. |
SVM_FUNCTION SVM_Value_Interruption svm_value_interruption_new_internal__raw | ( | const void * | svm, |
const SVM_Interruption_Internal | interruption, | ||
const char * | message, | ||
const SVM_Interruption_Kind | kind | ||
) |
This function creates an interruption the SVM can store in its memories from an interruption type and a C nul-terminated string.
[in] | svm | The SVM pointer passed as first argument of the callback function. |
[in] | interruption | The interruption code. |
[in] | message | A string for the SVM user. |
[in] | kind | The interruption type. |
The created interruption has an internal type and can be set as an hardware interruption.
FAILURE | interruption when a parameter is incorrect. (Please refer to the main description page of this API.) |
FAILURE | interruption when the interruption is set to PLUGIN_INTERRUPTION. |
SVM_FUNCTION SVM_Value_Interruption svm_value_interruption_new_internal__string | ( | const void * | svm, |
const SVM_Interruption_Internal | interruption, | ||
const SVM_String | message, | ||
const SVM_Interruption_Kind | kind | ||
) |
This function creates an interruption the SVM can store in its memories from an interruption type and a SVM_String.
[in] | svm | The SVM pointer passed as first argument of the callback function. |
[in] | interruption | The interruption code. |
[in] | message | A string for the SVM user. |
[in] | kind | The interruption type. |
The created interruption has an internal type and can be set as an hardware interruption.
FAILURE | interruption when a parameter is incorrect. (Please refer to the main description page of this API.) |
FAILURE | interruption when the interruption is set to PLUGIN_INTERRUPTION. |
SVM_FUNCTION SVM_Value_Interruption svm_value_interruption_new_null | ( | const void * | svm | ) |
This function creates an interruption value the SVM can store in its memories without a value.
[in] | svm | The SVM pointer passed as first argument of the callback function. |
FAILURE | interruption when a parameter is incorrect. (Please refer to the main description page of this API.) |
SVM_FUNCTION void svm_value_interruption_set | ( | const void * | svm, |
SVM_Value_Interruption | value, | ||
const SVM_Value_Interruption | interruption | ||
) |
This function replaces the interruption value by another interruption value.
[in] | svm | The SVM pointer passed as first argument of the callback function. |
[in,out] | value | The interruption value to update. |
[in] | interruption | The interruption to use for update. |
FAILURE | interruption when a parameter is incorrect. (Please refer to the main description page of this API.) |
FAILURE | interruption when the value parameter does not contain an interruption. |
FAILURE | interruption when the interruption parameter does not contain an interruption. |
FAILURE | interruption when the value is a constant. |
SVM_FUNCTION void svm_value_interruption_set_external | ( | const void * | svm, |
SVM_Value_Interruption | value, | ||
const SVM_Value_PluginEntryPoint | name, | ||
const SVM_Value_String | message | ||
) |
This function replaces the interruption name and the message contained in an interruption value from specific values and a string value message.
[in] | svm | The SVM pointer passed as first argument of the callback function. |
[in,out] | value | The interruption value to update. |
[in] | name | The new interruption extension name. |
[in] | message | The new interruption message. |
The interruption type is automatically set to PLUGIN_INTERRUPTION.
FAILURE | interruption when a parameter is incorrect. (Please refer to the main description page of this API.) |
FAILURE | interruption when the value parameter does not contain an interruption. |
FAILURE | interruption when the name parameter does not identify a plugin interruption. |
FAILURE | interruption when the value is a constant. |
SVM_FUNCTION void svm_value_interruption_set_external__raw | ( | const void * | svm, |
SVM_Value_Interruption | value, | ||
const SVM_Value_PluginEntryPoint | name, | ||
const char * | message | ||
) |
This function replaces the interruption name and the message contained in an interruption value from specific values and a C nul-terminated string message.
[in] | svm | The SVM pointer passed as first argument of the callback function. |
[in,out] | value | The interruption value to update. |
[in] | name | The new interruption extension name. |
[in] | message | The new interruption message. |
The interruption type is automatically set to PLUGIN_INTERRUPTION.
FAILURE | interruption when a parameter is incorrect. (Please refer to the main description page of this API.) |
FAILURE | interruption when the value parameter does not contain an interruption. |
FAILURE | interruption when the name parameter does not identify a plugin interruption. |
FAILURE | interruption when the value is a constant. |
SVM_FUNCTION void svm_value_interruption_set_external__string | ( | const void * | svm, |
SVM_Value_Interruption | value, | ||
const SVM_Value_PluginEntryPoint | name, | ||
const SVM_String | message | ||
) |
This function replaces the interruption name and the message contained in an interruption value from specific values and a SVM_String message.
[in] | svm | The SVM pointer passed as first argument of the callback function. |
[in,out] | value | The interruption value to update. |
[in] | name | The new interruption extension name. |
[in] | message | The new interruption message. |
The interruption type is automatically set to PLUGIN_INTERRUPTION.
FAILURE | interruption when a parameter is incorrect. (Please refer to the main description page of this API.) |
FAILURE | interruption when the value parameter does not contain an interruption. |
FAILURE | interruption when the name parameter does not identify a plugin interruption. |
FAILURE | interruption when the value is a constant. |
SVM_FUNCTION void svm_value_interruption_set_internal | ( | const void * | svm, |
SVM_Value_Interruption | value, | ||
const SVM_Interruption_Internal | type, | ||
const SVM_Value_String | message, | ||
const SVM_Interruption_Kind | kind | ||
) |
This function replaces the interruption type, the message and the kind of interruption contained in an interruption value from specific values and a string value message.
[in] | svm | The SVM pointer passed as first argument of the callback function. |
[in,out] | value | The interruption value to update. |
[in] | type | The new interruption type. |
[in] | message | The new interruption message. |
[in] | kind | The new interruption kind. |
FAILURE | interruption when a parameter is incorrect. (Please refer to the main description page of this API.) |
FAILURE | interruption when the value parameter does not contain an interruption. |
FAILURE | interruption when the value is a constant. |
FAILURE | interruption when the interruption type is PLUGIN_INTERRUPTION. |
SVM_FUNCTION void svm_value_interruption_set_internal__raw | ( | const void * | svm, |
SVM_Value_Interruption | value, | ||
const SVM_Interruption_Internal | type, | ||
const char * | message, | ||
const SVM_Interruption_Kind | kind | ||
) |
This function replaces the interruption type, the message and the kind of interruption contained in an interruption value from specific values and a C nul-terminated string message.
[in] | svm | The SVM pointer passed as first argument of the callback function. |
[in,out] | value | The interruption value to update. |
[in] | type | The new interruption type. |
[in] | message | The new interruption message. |
[in] | kind | The new interruption kind. |
FAILURE | interruption when a parameter is incorrect. (Please refer to the main description page of this API.) |
FAILURE | interruption when the value parameter does not contain an interruption. |
FAILURE | interruption when the value is a constant. |
FAILURE | interruption when the interruption type is PLUGIN_INTERRUPTION. |
SVM_FUNCTION void svm_value_interruption_set_internal__string | ( | const void * | svm, |
SVM_Value_Interruption | value, | ||
const SVM_Interruption_Internal | type, | ||
const SVM_String | message, | ||
const SVM_Interruption_Kind | kind | ||
) |
This function replaces the interruption type, the message and the kind of interruption contained in an interruption value from specific values and a SVM_String message.
[in] | svm | The SVM pointer passed as first argument of the callback function. |
[in,out] | value | The interruption value to update. |
[in] | type | The new interruption type. |
[in] | message | The new interruption message. |
[in] | kind | The new interruption kind. |
FAILURE | interruption when a parameter is incorrect. (Please refer to the main description page of this API.) |
FAILURE | interruption when the value parameter does not contain an interruption. |
FAILURE | interruption when the value is a constant. |
FAILURE | interruption when the interruption type is PLUGIN_INTERRUPTION. |
SVM_FUNCTION SVM_Boolean svm_value_type_is_interruption | ( | const void * | svm, |
const SVM_Value | value | ||
) |
This function checks whether a value contains an interruption.
[in] | svm | The SVM pointer passed as first argument of the callback function. |
[in] | value | The value to be diagnosed. |
FAILURE | interruption when a parameter is incorrect. (Please refer to the main description page of this API.) |