[cfe-dev] void main
Jochen Wilhelmy
j.wilhelmy at arcor.de
Sat May 8 15:57:47 PDT 2010
> That's entirely non-standard. Why not just return 0?
>
I'm not using clang for standard purposes. Just as an embedded compiler.
If you have for example glsl they define void main() as the main entry
point (nehe.gamedev.net/data/articles/article.asp?article=21).
I want to do a similar thing and therefore want to switch off all
magic that is associated with main.
I already found
if (NewFD->isMain())
CheckMain(NewFD);
In SemaDecl.cpp. I only need to find where the isMain property gets
set.
-Jochen
More information about the cfe-dev
mailing list