ender
0.0.9
Descriptorlibrary
|
A function represents an exported function of the library. More...
Enumerations | |
enum | Ender_Item_Function_Flag { ENDER_ITEM_FUNCTION_FLAG_IS_METHOD = (1 << 0), ENDER_ITEM_FUNCTION_FLAG_THROWS = (1 << 1), ENDER_ITEM_FUNCTION_FLAG_CTOR = (1 << 2), ENDER_ITEM_FUNCTION_FLAG_REF = (1 << 3), ENDER_ITEM_FUNCTION_FLAG_UNREF = (1 << 4), ENDER_ITEM_FUNCTION_FLAG_CALLBACK = (1 << 5), ENDER_ITEM_FUNCTION_FLAG_VALUE_OF = (1 << 6), ENDER_ITEM_FUNCTION_FLAG_DOWNCAST = (1 << 7) } |
Functions | |
EAPI Eina_List * | ender_item_function_args_get (Ender_Item *i) |
EAPI Ender_Item * | ender_item_function_args_at (Ender_Item *i, int idx) |
EAPI int | ender_item_function_args_count (Ender_Item *i) |
EAPI Ender_Item * | ender_item_function_ret_get (Ender_Item *i) |
Eina_Bool | ender_item_function_call (Ender_Item *i, Ender_Value *args, Ender_Value *retval) |
EAPI int | ender_item_function_flags_get (Ender_Item *i) |
EAPI int | ender_item_function_throw_position_get (Ender_Item *i) |
A function represents an exported function of the library.
Different flags a function can have
EAPI Eina_List* ender_item_function_args_get | ( | Ender_Item * | i | ) |
Get the list of arguments from a function
i | The function to get the arguments from |
EAPI Ender_Item* ender_item_function_args_at | ( | Ender_Item * | i, |
int | idx | ||
) |
Get the argument in a specified index
i | The function to get the argument from |
idx | The index on the argument list |
EAPI int ender_item_function_args_count | ( | Ender_Item * | i | ) |
Count the number of arguments a function has
i | The function to count the number of arguments on |
EAPI Ender_Item* ender_item_function_ret_get | ( | Ender_Item * | i | ) |
Get the return item of a function
i | The function to get the return from |
Eina_Bool ender_item_function_call | ( | Ender_Item * | i, |
Ender_Value * | args, | ||
Ender_Value * | retval | ||
) |
Call a function
i | The function to call |
args | The array of values that matches the number of arguments |
retval | The returning value of the function call |
EAPI int ender_item_function_flags_get | ( | Ender_Item * | i | ) |
Get the function flags
i | The function to get the flags from |
EAPI int ender_item_function_throw_position_get | ( | Ender_Item * | i | ) |
Get the index position of the argument that is used for exceptions
A function that has the flag ENDER_ITEM_FUNCTION_FLAG_THROWS has an Eina_Error based argument. This function returns the position of such argument.
i | The function to get the position index from |