E
Evangelista Sami
hello everybody
let's take this struct
typedef struct {
int i;
int j;
} my_struct;
is there a way to transform this function :
my_struct new_my_struct
(int i,
int j)
{
my_struct res;
res.i = i;
res.j = j;
return res;
}
into a single macro using the awful permissions of the C syntax?
Sami Evangelista
let's take this struct
typedef struct {
int i;
int j;
} my_struct;
is there a way to transform this function :
my_struct new_my_struct
(int i,
int j)
{
my_struct res;
res.i = i;
res.j = j;
return res;
}
into a single macro using the awful permissions of the C syntax?
Sami Evangelista