aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorkwolekr <kwolekr@minetest.net>2015-08-18 01:26:11 -0400
committerkwolekr <kwolekr@minetest.net>2015-08-18 01:26:11 -0400
commitc2d23ff9ccf04dd0e4c2ba8a8026857c034bc947 (patch)
tree50ace0a9d82a33e085bf1350defcb15b854856fa /src
parentbcf38a2ad19116b50d0456bdd6f79d0d218e39d1 (diff)
downloadminetest-c2d23ff9ccf04dd0e4c2ba8a8026857c034bc947.tar.gz
minetest-c2d23ff9ccf04dd0e4c2ba8a8026857c034bc947.tar.bz2
minetest-c2d23ff9ccf04dd0e4c2ba8a8026857c034bc947.zip
SAPI: Disable unlockable time profiling
Diffstat (limited to 'src')
-rw-r--r--src/script/lua_api/l_internal.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/script/lua_api/l_internal.h b/src/script/lua_api/l_internal.h
index e8a029b86..1e40c5c4a 100644
--- a/src/script/lua_api/l_internal.h
+++ b/src/script/lua_api/l_internal.h
@@ -33,12 +33,16 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#define API_FCT(name) registerFunction(L, #name, l_##name,top)
#define ASYNC_API_FCT(name) engine.registerFunction(#name, l_##name)
-#if (defined(WIN32) || defined(_WIN32_WCE))
#define NO_MAP_LOCK_REQUIRED
+
+/*
+#if (defined(WIN32) || defined(_WIN32_WCE))
+ #define NO_MAP_LOCK_REQUIRED
#else
-#include "profiler.h"
-#define NO_MAP_LOCK_REQUIRED \
- ScopeProfiler nolocktime(g_profiler,"Scriptapi: unlockable time",SPT_ADD)
+ #include "profiler.h"
+ #define NO_MAP_LOCK_REQUIRED \
+ ScopeProfiler nolocktime(g_profiler,"Scriptapi: unlockable time",SPT_ADD)
#endif
+*/
#endif /* L_INTERNAL_H_ */