cpg-network Reference Manual | ||||
---|---|---|---|---|
Top | Description |
#include <cpg-network/cpg-compile-error.h> #define CPG_COMPILE_ERROR_TYPE enum CpgCompileErrorCode; CpgCompileError; CpgCompileError * cpg_compile_error_new (); void cpg_compile_error_set (CpgCompileError *error, GError *gerror, CpgObject *object, CpgProperty *property, CpgLinkAction *action); GError * cpg_compile_error_get_error (CpgCompileError *error); CpgObject * cpg_compile_error_get_object (CpgCompileError *error); CpgProperty * cpg_compile_error_get_property (CpgCompileError *error); CpgLinkAction * cpg_compile_error_get_link_action (CpgCompileError *error); const gchar * cpg_compile_error_string (CpgCompileError *error); const gchar * cpg_compile_error_code_string (gint code); gint cpg_compile_error_get_code (CpgCompileError *error); const gchar * cpg_compile_error_get_message (CpgCompileError *error);
typedef enum { CPG_COMPILE_ERROR_PROPERTY_NOT_FOUND, CPG_COMPILE_ERROR_FUNCTION_NOT_FOUND, CPG_COMPILE_ERROR_INVALID_TOKEN, CPG_COMPILE_ERROR_MAXARG, CPG_COMPILE_ERROR_INVALID_STACK, CPG_COMPILE_ERROR_NUM_ERRORS } CpgCompileErrorCode;
Enum used to indicate the type of compile error
property not found | |
function not found | |
invalid token | |
maximum number of arguments exceeded | |
invalid stack produced | |
num errors |
CpgCompileError * cpg_compile_error_new ();
Create new empty compile error
Returns : |
a new CpgCompileError |
void cpg_compile_error_set (CpgCompileError *error, GError *gerror, CpgObject *object, CpgProperty *property, CpgLinkAction *action);
|
|
|
|
|
|
|
|
|
GError * cpg_compile_error_get_error (CpgCompileError *error);
Get the associated GError
|
a CpgCompileError |
Returns : |
the associated GError |
CpgObject * cpg_compile_error_get_object (CpgCompileError *error);
Get the associated CpgObject
|
a CpgCompileError |
Returns : |
the associated CpgObject |
CpgProperty * cpg_compile_error_get_property (CpgCompileError *error);
Get the associated CpgProperty
|
a CpgCompileError |
Returns : |
the associated CpgProperty |
CpgLinkAction * cpg_compile_error_get_link_action (CpgCompileError *error);
Get the associated CpgLinkAction
|
a CpgCompileError |
Returns : |
the associated CpgLinkAction |
const gchar * cpg_compile_error_string (CpgCompileError *error);
Get the string describing error
|
a CpgCompileError |
Returns : |
the error string message |
const gchar * cpg_compile_error_code_string (gint code);
Get the string describing an error with error code error
|
the error code |
Returns : |
the error string message |
gint cpg_compile_error_get_code (CpgCompileError *error);
Get the error code
|
a CpgCompileError |
Returns : |
the error code |
const gchar * cpg_compile_error_get_message (CpgCompileError *error);
Get the error message
|
a CpgCompileError |
Returns : |
the error message |