summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNicolas "Pixel" Noble <pixel@nobis-crew.org>2013-12-27 15:27:54 -0800
committerNicolas "Pixel" Noble <pixel@nobis-crew.org>2013-12-27 15:27:54 -0800
commitc86427824feb6377275b12c9f5b656b964787f56 (patch)
treef01c0ea987fd2e695b3e2f8d7c2cebce8b14279a /src
parent3209e8b9df26bd36f495e42959371f469dff9a6c (diff)
Letting the user's choice on how to call Balau's main.
Diffstat (limited to 'src')
-rw-r--r--src/Main.cc6
1 files changed, 5 insertions, 1 deletions
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);