Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion PCbuild/pyproject.props
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
<_DebugPreprocessorDefinition>NDEBUG;</_DebugPreprocessorDefinition>
<_DebugPreprocessorDefinition Condition="$(Configuration) == 'Debug'">_DEBUG;</_DebugPreprocessorDefinition>
<_PyStatsPreprocessorDefinition>PyStats;</_PyStatsPreprocessorDefinition>
<_PyStatsPreprocessorDefinition Condition="$(PySTATS) != ''">Py_STATS;</_PyStatsPreprocessorDefinition>
<_PyStatsPreprocessorDefinition Condition="$(PySTATS) != ''">Py_STATS=1;</_PyStatsPreprocessorDefinition>
<_PlatformPreprocessorDefinition>_WIN32;</_PlatformPreprocessorDefinition>
<_PlatformPreprocessorDefinition Condition="$(Platform) == 'x64'">_WIN64;</_PlatformPreprocessorDefinition>
<_PlatformPreprocessorDefinition Condition="$(Platform) == 'x64' and $(PlatformToolset) != 'ClangCL'">_M_X64;$(_PlatformPreprocessorDefinition)</_PlatformPreprocessorDefinition>
Expand Down
2 changes: 1 addition & 1 deletion Python/pystate.c
Original file line number Diff line number Diff line change
Expand Up @@ -2294,7 +2294,7 @@ tstate_deactivate(PyThreadState *tstate)
assert(tstate_is_bound(tstate));
assert(tstate->_status.active);

#if Py_STATS
#ifdef Py_STATS
_PyStats_Detach((_PyThreadStateImpl *)tstate);
#endif

Expand Down
4 changes: 2 additions & 2 deletions Python/specialize.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
* InternalDocs/interpreter.md `Specialization` section.
*/

#if Py_STATS
#ifdef Py_STATS
#define SPECIALIZATION_FAIL(opcode, kind) \
do { \
PyStats *s = _PyStats_GET(); \
Expand All @@ -42,7 +42,7 @@ do { \
} while (0)
#else
# define SPECIALIZATION_FAIL(opcode, kind) ((void)0)
#endif // Py_STATS
#endif // !Py_STATS

static void
fixup_getiter(_Py_CODEUNIT *instruction, int flags)
Expand Down
Loading