summaryrefslogtreecommitdiffstats
path: root/source/main.cpp
diff options
context:
space:
mode:
authorfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-08-15 23:24:11 +0200
committerfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-08-15 23:24:11 +0200
commitd21e4dacf7341b924fa534523ba31348ff6789ad (patch)
tree95a8b355c471cd2ab39e58f3d80b63d64ab8510a /source/main.cpp
parentAdded temporary debug statistics of the RelEntMoveLook packet removal efficiency (diff)
downloadcuberite-d21e4dacf7341b924fa534523ba31348ff6789ad.tar
cuberite-d21e4dacf7341b924fa534523ba31348ff6789ad.tar.gz
cuberite-d21e4dacf7341b924fa534523ba31348ff6789ad.tar.bz2
cuberite-d21e4dacf7341b924fa534523ba31348ff6789ad.tar.lz
cuberite-d21e4dacf7341b924fa534523ba31348ff6789ad.tar.xz
cuberite-d21e4dacf7341b924fa534523ba31348ff6789ad.tar.zst
cuberite-d21e4dacf7341b924fa534523ba31348ff6789ad.zip
Diffstat (limited to '')
-rw-r--r--source/main.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/source/main.cpp b/source/main.cpp
index 4b498ae0a..0fdaf2d50 100644
--- a/source/main.cpp
+++ b/source/main.cpp
@@ -6,13 +6,16 @@
#include <exception> //std::exception
#include <csignal> //std::signal
#include <stdlib.h> //exit()
+#ifdef USE_SQUIRREL
#include "squirrelbindings/SquirrelFunctions.h"
+#include "squirrelbindings/SquirrelBindings.h"
+#endif
#ifdef _WIN32
#include <dbghelp.h>
#endif // _WIN32
-#include "squirrelbindings/SquirrelBindings.h"
+
@@ -168,11 +171,14 @@ int main( int argc, char **argv )
// DEBUG: test the dumpfile creation:
// *((int *)0) = 0;
+ #if !defined(ANDROID_NDK)
try
+ #endif
{
cRoot Root;
Root.Start();
}
+ #if !defined(ANDROID_NDK)
catch( std::exception& e )
{
LOGERROR("Standard exception: %s", e.what() );
@@ -181,6 +187,7 @@ int main( int argc, char **argv )
{
LOGERROR("Unknown exception!");
}
+ #endif
#if defined(_MSC_VER) && defined(_DEBUG) && defined(ENABLE_LEAK_FINDER)