Skip to content

Commit

Permalink
SAPI: Disable unlockable time profiling
Browse files Browse the repository at this point in the history
  • Loading branch information
kwolekr committed Aug 18, 2015
1 parent bcf38a2 commit c2d23ff
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/script/lua_api/l_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -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_ */

0 comments on commit c2d23ff

Please sign in to comment.