From 9046a72f823b99e5b0f604432aeff25945fc1722 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Mon, 6 Nov 2017 15:16:12 +0100 Subject: [PATCH] Fix enabled/disabled includes. --- TracyLua.hpp | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/TracyLua.hpp b/TracyLua.hpp index 0ff28fbd..dd03f546 100644 --- a/TracyLua.hpp +++ b/TracyLua.hpp @@ -1,16 +1,13 @@ #ifndef __TRACYLUA_HPP__ #define __TRACYLUA_HPP__ -#include +#ifndef TRACY_ENABLE -#include "common/TracySystem.hpp" -#include "client/TracyProfiler.hpp" +#include 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