mesa/src/mapi
Yonggang Luo 1ac1c0843f treewide: Replace usage of macro DEBUG with MESA_DEBUG when possible
This is achieved by the following steps:

#ifndef DEBUG => #if !MESA_DEBUG
defined(DEBUG) => MESA_DEBUG
#ifdef DEBUG => #if MESA_DEBUG

This is done by replace in vscode

excludes
docs,*.rs,addrlib,src/imgui,*.sh,src/intel/vulkan/grl/gpu

These are safe because those files should keep DEBUG macro is already excluded;
and not directly replace DEBUG, as we have some symbols around it.

Use debug or NDEBUG instead of DEBUG in comments when proper

This for reduce the usage of DEBUG,
so it's easier migrating to MESA_DEBUG

These are found when migrating DEBUG to MESA_DEBUG,
these are all comment update, so it's safe

Replace comment /* DEBUG */ and /* !DEBUG */ with proper /* MESA_DEBUG */ or /* !MESA_DEBUG */ manually

DEBUG || !NDEBUG -> MESA_DEBUG || !NDEBUG
!DEBUG && NDEBUG -> !(MESA_DEBUG || !NDEBUG)

Replace the DEBUG present in comment with proper new MESA_DEBUG manually

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Acked-by: David Heidelberg <david.heidelberg@collabora.com>
Reviewed-by: Eric Engestrom <eric@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28092>
2024-03-22 18:22:34 +00:00
..
es1api meson: use the same workaround for setting 'lib' on windows 2023-01-19 23:06:07 +00:00
es2api meson: use the same workaround for setting 'lib' on windows 2023-01-19 23:06:07 +00:00
glapi treewide: Replace usage of macro DEBUG with MESA_DEBUG when possible 2024-03-22 18:22:34 +00:00
new treewide: Replace usage of macro DEBUG with MESA_DEBUG when possible 2024-03-22 18:22:34 +00:00
shared-glapi mapi: Delete execmem support code. 2023-06-12 21:37:37 +00:00
entry.c mapi: Delete dynamic stub generation. 2023-06-12 21:37:37 +00:00
entry.h mapi: Delete dynamic stub generation. 2023-06-12 21:37:37 +00:00
entry_ppc64le_tls.h mapi: Delete dynamic stub generation. 2023-06-12 21:37:37 +00:00
entry_x86-64_tls.h mapi: Delete dynamic stub generation. 2023-06-12 21:37:37 +00:00
entry_x86_tls.h mapi: Delete dynamic stub generation. 2023-06-12 21:37:37 +00:00
mapi_abi.py treewide: Replace usage of macro DEBUG with MESA_DEBUG when possible 2024-03-22 18:22:34 +00:00
mapi_tmp.h
meson.build glapi: inline the meson list files_mapi_util 2023-03-12 17:56:10 -04:00
u_current.c mapi: Improve comment about _glapi_tls_Dispatch and _glapi_tls_Context 2022-08-22 21:32:09 +00:00
u_current.h mapi: Move shared _glapi_set_context and _glapi_set_dispatch into u_current.c 2022-08-22 21:32:09 +00:00