Skip to content

Commit c2d23ff

Browse files
committedAug 18, 2015
SAPI: Disable unlockable time profiling
1 parent bcf38a2 commit c2d23ff

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed
 

Diff for: ‎src/script/lua_api/l_internal.h

+8-4
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,16 @@ with this program; if not, write to the Free Software Foundation, Inc.,
3333
#define API_FCT(name) registerFunction(L, #name, l_##name,top)
3434
#define ASYNC_API_FCT(name) engine.registerFunction(#name, l_##name)
3535

36-
#if (defined(WIN32) || defined(_WIN32_WCE))
3736
#define NO_MAP_LOCK_REQUIRED
37+
38+
/*
39+
#if (defined(WIN32) || defined(_WIN32_WCE))
40+
#define NO_MAP_LOCK_REQUIRED
3841
#else
39-
#include "profiler.h"
40-
#define NO_MAP_LOCK_REQUIRED \
41-
ScopeProfiler nolocktime(g_profiler,"Scriptapi: unlockable time",SPT_ADD)
42+
#include "profiler.h"
43+
#define NO_MAP_LOCK_REQUIRED \
44+
ScopeProfiler nolocktime(g_profiler,"Scriptapi: unlockable time",SPT_ADD)
4245
#endif
46+
*/
4347

4448
#endif /* L_INTERNAL_H_ */

0 commit comments

Comments
 (0)
Please sign in to comment.