aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/tools/python/src/Include/Python.h
diff options
context:
space:
mode:
authorthegeorg <thegeorg@yandex-team.com>2024-08-06 11:28:41 +0300
committerthegeorg <thegeorg@yandex-team.com>2024-08-06 12:56:38 +0300
commitdb9505d66cb73d62c7beaff1980941cfb1aec0ea (patch)
tree70d2c9e73730f2552cf1f345c5e96f037092800a /contrib/tools/python/src/Include/Python.h
parentde4d7efd8871b850e3ea79164d7661e2299836b7 (diff)
downloadydb-db9505d66cb73d62c7beaff1980941cfb1aec0ea.tar.gz
Define -D_DEBUG and -DNDEBUG disregarding target platform
I have found out that Windows build omits`Y_ASSERT` statements when compiled in `--build=relwithdebinfo` The reason is simple: most people know about `ifndef NDEBUG`, yet nobody checks `ifdef _DEBUG` (codesearch queries over util [for NDEBUG](https://a.yandex-team.ru/search?search=NDEBUG%2C%255Eutil%2Cw%2Carcadia%2C%2C200) and [for _DEBUG](https://a.yandex-team.ru/search?search=_DEBUG%2C%255Eutil%2Cw%2Carcadia%2C%2C200)). This PR makes these two values consistent with each other disregarding the target platform. https://stackoverflow.com/questions/2290509/debug-vs-ndebug/2290616#2290616 https://learn.microsoft.com/en-us/visualstudio/debugger/enabling-debug-features-in-visual-cpp-d-debug 7bab996a4a9e0db5e11a92d804733f50200b745c
Diffstat (limited to 'contrib/tools/python/src/Include/Python.h')
0 files changed, 0 insertions, 0 deletions