Displaying 1 result from an estimated 1 matches for "t_pmyfunc".
Did you mean:
_myfunc
2012 Nov 28
0
[LLVMdev] Fwd: clang code-completion question
...Lewycky <nicholas at mxc.ca>
Cc: "cfe-dev at cs.uiuc.edu Developers" <cfe-dev at cs.uiuc.edu>
Hello, Nick!
Thank you for your reply.
Regarding to pointers to functions: look at this code:
static void _some_func(int a, int b, int c)
{
//-- do something
}
typedef void (*T_pMyFunc) (int a, int b, int c);
typedef struct {
T_pMyFunc p_my_func;
} T_MyStruct;
int main(void)
{
T_MyStruct my_struct = {
.p_my_func = _some_func,
};
_some_func/*cursor is here. I see function signature: int a, int b, int
c. Everything is great*/
my_struct./*cursor is here. I...