A
Andreas Morgenstern
Hi,
Does anybody know how one can use a macro (or something similar) as a
function name ?
I would like to declare the following functions:
FOO_fun1(int)
{
....
}
FOO_fun2(int)
{
....
}
with a compile option (I use gcc) FOO should be substituted by any string.
Thank for all suggestions
Andreas
PS: if anybody wonders, what I'm doing:
I'm currently implementing something in Esterel and Esterel will
automatically generate me a C-Code-File (for example foo.c).
In this file, there will be function calls to some extern declared functions
foo_fun1(int), foo_fun2(char* h)....
I have to implement those functions foo. But the C-Code of another esterel
programm foo2 will assume the same syntax. I'm trying to avoid that I must
replace foo by foo2 by hand, therefore a compile option would be nice
Does anybody know how one can use a macro (or something similar) as a
function name ?
I would like to declare the following functions:
FOO_fun1(int)
{
....
}
FOO_fun2(int)
{
....
}
with a compile option (I use gcc) FOO should be substituted by any string.
Thank for all suggestions
Andreas
PS: if anybody wonders, what I'm doing:
I'm currently implementing something in Esterel and Esterel will
automatically generate me a C-Code-File (for example foo.c).
In this file, there will be function calls to some extern declared functions
foo_fun1(int), foo_fun2(char* h)....
I have to implement those functions foo. But the C-Code of another esterel
programm foo2 will assume the same syntax. I'm trying to avoid that I must
replace foo by foo2 by hand, therefore a compile option would be nice