1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

7 Commits

Author SHA1 Message Date
Pantelis Lekakis
fb6b4c6c06 compile error fix 2023-12-18 10:33:18 +00:00
Pantelis Lekakis
cf33524d67 fixed the remaining ifdef 2023-12-17 21:58:35 +00:00
Pantelis Lekakis
fd8cfbe53f fix for TRACY_ON_DEMAND check in my commit 2023-12-17 18:37:20 +00:00
Pantelis Lekakis
615128151d Guarding against 'TracyIsStarted' in many of Tracy's functions so that MANUAL_LIFETIME can be used correctly. Mutexes that have been allocated *before* Tracy is initialised will not be tracked. 2023-12-17 17:47:47 +00:00
Björn Blissing
e1b1fd72dc Wrap std::numeric_limits<T>::max() in parenthesis
The windows.h header file defines the macro max. If the max macro is include
it will lead to name collisions with the std::numeric_limits<T>::max() function.

One solution is to define NOMINMAX before the inclusion of windows.h.
However, that might be a demanding task for a large codebase. Defining the
NOMINMAX as global define may also break previous code.

Another to solution to the problem is to wrap the numeric_limits function in
parenthesis to instruct the compiler to treat it as a function and not a macro.

This commit wraps the std::numeric_limits<T>::max() calls in the public
interfacing header files, with parenthesis.
2023-08-17 10:03:52 +02:00
Bartosz Taudul
440d20b864
Don't transfer lock release thread id.
We already know which thread is holding the lock.
2022-07-18 01:56:09 +02:00
Bartosz Taudul
06c7984a16
Move all client headers and sources to public/ directory. 2022-07-17 15:47:38 +02:00