Get rid of __Monicelli_main and directly call main()

This commit is contained in:
Stefano Sanfilippo 2015-03-08 12:04:46 +01:00
parent be60adb510
commit 8656d5c761
2 changed files with 1 additions and 6 deletions

View File

@ -18,7 +18,6 @@
*/
#include "Nodes.hpp"
#include "RuntimePrototypes.hpp"
#include <string>
using namespace monicelli;
@ -27,7 +26,7 @@ Function *monicelli::makeMain(PointerList<Statement> *body) {
PointerList<FunArg> *noargs = new PointerList<FunArg>();
FunctionPrototype *proto = new FunctionPrototype(
new Id(new std::string(ENTRYPOINT_NAME)), Type::VOID, noargs
new Id("main"), Type::VOID, noargs
);
return new Function(proto, body);

View File

@ -89,7 +89,3 @@ void __Monicelli_assert(__Monicelli_Bool condition) {
assert(condition);
}
int main() {
__Monicelli_main();
}