SAPI: Disable unlockable time profiling
authorkwolekr <kwolekr@minetest.net>
Tue, 18 Aug 2015 05:26:11 +0000 (01:26 -0400)
committerkwolekr <kwolekr@minetest.net>
Tue, 18 Aug 2015 05:26:11 +0000 (01:26 -0400)
src/script/lua_api/l_internal.h

index e8a029b868ab63c68ab5bb39d6e8d70b55646349..1e40c5c4aced4b09194d5575d7dc4348a1981689 100644 (file)
@@ -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_ */