Hi,
I have the following problem. You might think, this has no purpose, but just read until the end. This is the code that i want to execute:
void foo2() {
return;
}
void foo() {
return foo2();
}
function main() {
foo();
}
However this doesn't work in lite-c (Can't convert GETRETV:::VOID)
This works in other c-compilers and i could imagine that it is valid C code.
Now I need a workaround for Lite-C... do you have any ideas.
To make it clear why I need this. I have a macro that automatically creates some overloading of a function:
#define overload(returnType, overloadFunc) \
returnType overloadFunc(char* text, int style) \
{ \
return overloadFunc(text, NULL, style) \
} \
returnType overloadFunc(BMAP* img, int style) \
{ \
return overloadFunc(NULL, img, style) \
}
When i now have a function with void as return type, it won't work:
void drawTextOrImageWithStyle(char* text, BMAP* img, int style)
{
}
overload(void, drawTextOrImageWithStyle)