mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-26 16:04:34 +00:00
5cbe2c6ae5
This fixes deprecation warning in tracy_lz4.hpp, which was previously present due to TracyProfiler.cpp including tracy_lz4.hpp before an appropriate deprecation restraining macro was defined in tracy_lz4.cpp. Note that this issue was only present if TracyClient.cpp was used to include the profiler in a project. Including the profiler as a collection of separate source files worked correctly, as the deprecated function is only used by tracy_lz4.cpp.
30 lines
620 B
C++
30 lines
620 B
C++
//
|
|
// Tracy profiler
|
|
// ----------------
|
|
//
|
|
// For fast integration, compile and
|
|
// link with this source file (and none
|
|
// other) in your executable (or in the
|
|
// main DLL / shared object on multi-DLL
|
|
// projects).
|
|
//
|
|
|
|
// Define TRACY_ENABLE to enable profiler.
|
|
|
|
#include "common/TracySystem.cpp"
|
|
|
|
#ifdef TRACY_ENABLE
|
|
|
|
#include "common/tracy_lz4.cpp"
|
|
#include "client/TracyProfiler.cpp"
|
|
#include "client/TracyCallstack.cpp"
|
|
#include "common/TracySocket.cpp"
|
|
#include "client/tracy_rpmalloc.cpp"
|
|
|
|
#ifdef _MSC_VER
|
|
# pragma comment(lib, "ws2_32.lib")
|
|
# pragma comment(lib, "dbghelp.lib")
|
|
#endif
|
|
|
|
#endif
|