From c86427824feb6377275b12c9f5b656b964787f56 Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Fri, 27 Dec 2013 15:27:54 -0800 Subject: Letting the user's choice on how to call Balau's main. --- src/Main.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/Main.cc b/src/Main.cc index a01ad24..aa3fd3e 100644 --- a/src/Main.cc +++ b/src/Main.cc @@ -200,7 +200,11 @@ int Balau::Main::bootstrap(int argc, char ** argv) { extern "C" { -int main(int argc, char ** argv) { +#ifndef BALAU_MAIN +#define BALAU_MAIN main +#endif + +int BALAU_MAIN(int argc, char ** argv) { setlocale(LC_ALL, ""); Balau::Main mainClass; return mainClass.bootstrap(argc, argv); -- cgit v1.2.3