From: kwolekr Date: Tue, 18 Aug 2015 05:26:11 +0000 (-0400) Subject: SAPI: Disable unlockable time profiling X-Git-Tag: 0.4.13~10 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c2d23ff9ccf04dd0e4c2ba8a8026857c034bc947;p=oweals%2Fminetest.git SAPI: Disable unlockable time profiling --- 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_ */