I'm using vscode to read a relatively large embedded project, but it seems that vscode doesn't recognize macros defined with cflags += -D in the makefile (as shown in the image below). I'm desperate to know how to get vscode to recognize macros defined in this way, or if it's possible to export macros defined in cflags to a file at compile time? If these can't be done, is there any other editor suitable for viewing embedded projects?
Here is an example of a macro in a makefile:
AIR_MULTI_POINT_ENABLE = y
ifeq ($(AIR_MULTI_POINT_ENABLE),y)
CFLAGS += -DAIR_MULTI_POINT_ENABLE
endif
vscode does not recognize this macro, and the corresponding code block is not colored.