mesa/src/mapi/glapi
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
..
gen apple: Extended Apple feature support using GLX_USE_APPLE. 2024-03-18 18:06:45 +00:00
registry Update OpenGL headers 2023-06-07 20:47:03 +00:00
tests mapi: Now _glapi_get_dispatch_table_size always equal to sizeof(struct _glapi_table) / sizeof(void *) 2023-06-27 11:38:59 +00:00
glapi.c mapi: Move shared stub into u_current.c 2022-08-22 21:32:09 +00:00
glapi.h mesa: Drop the aliases from the remap table. 2023-06-12 21:37:37 +00:00
glapi_dispatch.c treewide: Replace usage of macro DEBUG with MESA_DEBUG when possible 2024-03-22 18:22:34 +00:00
glapi_entrypoint.c mapi: Delete dynamic stub generation. 2023-06-12 21:37:37 +00:00
glapi_getproc.c mapi: Remove dead struct _glapi_function in glapi/glapi_getproc.c 2023-06-29 01:36:09 +00:00
glapi_nop.c
glapi_priv.h mapi: Delete dynamic stub generation. 2023-06-12 21:37:37 +00:00
meson.build mapi: Delete execmem support code. 2023-06-12 21:37:37 +00:00