Похожие чаты

Why not just improve debuggers to do a realtime preprocessor

pass find the problem for us?

4 ответов

7 просмотров

afaik macros are removed in the 4th phase of the compilation, there's no trace of their usage in the binary built which makes it difficult for debuggers to do that. Also macros in C++ are severely limited in functionality so people don't use it any often. I doubt somone would go through the effort of making it possible when one can write a plugin for editors which can just preprocess the text expanding all macros for you. Now that I think about it some compilers do offer expanding macros for you but idk.

counter question, why use a macro in first place? You can't separate them with namespace and they are going to leak into your dependent code most of the time

Déjà vu- Автор вопроса
Kuntal M
counter question, why use a macro in first place? ...

because as example sometimes i just need simple text replacements to make the code more readable. i'm not suggesting to do everything inside macro

Похожие вопросы

Обсуждают сегодня

Скажите, можно ли как-то "переместить" динамический массив из одной переменной в другую? Скажем, переместить из TList<> в TArray<>. Именно переместить, а не скопировать. Если ...
Eugene Krasnikov (ᴊɪɴ x)
36
Hi everyone! I have a two-folded message to share today. First: updates and news, as we are being asked for those. We still want to go like we did the last 6 years: we w...
Marten | Unibright.io
31
комрады, че-та лыжы не едут var tmpFont: TFont; begin tmpFont:= TFont.Create; try case rgFontColor.ItemIndex of 0: tmpFont.Color:= clWindowText; 1: tmpFo...
Ed Doc
34
М-да. Почему бы просто со stringlist не работать?
Michael Longneck
18
VIP-310 Set RedStone as the MAIN oracle for BTC and BNB on BNB Chain Summary If passed, this VIP will perform the following actions: - Configure RedStone as the MAIN oracle...
Venus Announcements
1
Интересно, нет ли какого-то способа получить из dll не адрес самой метки, а адрес со смещением?
The Bird of Hermes
54
monero is the only tool for privacy and currency . why would we destroy it?
😎
13
🔍 Launch of Sentinel dVPN's Native Explorer 🎉 The Sentinel Growth DAO is thrilled to announce the launch of Sentinel dVPN's new native blockchain explorer! Now anyone can div...
Joey | BadgerBite Joeyy
1
Можно вообще написать: Person fName' lName' age'. Тогда действительно имена полей потребуются лишь в строковом виде, чтобы эти fName' и т.д. достать :-) Но разве для этого нуж...
Михаил
8
Hey everyone I have installed wine with winetricks for some applications I used on windows Now some of these applications need some dlls that are not available in the winetr...
Mehrshad
8
Карта сайта