Fix enabled/disabled includes.

This commit is contained in:
Bartosz Taudul 2017-11-06 15:16:12 +01:00
parent 8d4b10be4d
commit 9046a72f82

View File

@ -1,16 +1,13 @@
#ifndef __TRACYLUA_HPP__
#define __TRACYLUA_HPP__
#include <string.h>
#ifndef TRACY_ENABLE
#include "common/TracySystem.hpp"
#include "client/TracyProfiler.hpp"
#include <string.h>
namespace tracy
{
#ifndef TRACY_ENABLE
namespace detail
{
static inline int noop( lua_State* L ) { return 0; }
@ -54,8 +51,16 @@ static inline void LuaRemove( char* script )
}
}
}
#else
#include "common/TracySystem.hpp"
#include "client/TracyProfiler.hpp"
namespace tracy
{
namespace detail
{
@ -126,8 +131,8 @@ static inline void LuaRegister( lua_State* L )
static inline void LuaRemove( char* script ) {}
#endif
}
#endif
#endif