R
raphfrk
This is probably not possible, but I thought I would ask.
Assuming that there is a function that takes a pointer to a function
as an input. Can the passed function be defined inline.
For example:
void func_func( void (*func_tst)( int ) , int a )
{
(*func_tst)( a );
}
int main( int argc, char **argv )
{
func_func(
(void (*) (int a))
{
printf( "%n" , a );
},
7
);
}
The effect would be that func_func would call the inlined function and
pass it 7.
Assuming that there is a function that takes a pointer to a function
as an input. Can the passed function be defined inline.
For example:
void func_func( void (*func_tst)( int ) , int a )
{
(*func_tst)( a );
}
int main( int argc, char **argv )
{
func_func(
(void (*) (int a))
{
printf( "%n" , a );
},
7
);
}
The effect would be that func_func would call the inlined function and
pass it 7.