Displaying 1 result from an estimated 1 matches for "p_my_func".
Did you mean:
my_func
2012 Nov 28
0
[LLVMdev] Fwd: clang code-completion question
...du 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 see only member T_pMyFunc p_my_func, but
there's no function...