Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Macro trace #47

Open
BrettMayson opened this issue Jun 25, 2019 · 0 comments
Open

Macro trace #47

BrettMayson opened this issue Jun 25, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@BrettMayson
Copy link
Contributor

Let's say you have something like
greeting.hpp

#define HELLO(name) Hello name

shortcuts.hpp

#define HI_BRETT_KOFFEIN \
HELLO(Brett) \
HELLO(Koffein)

#define HI_JONPAS HELLO(jonpas)

config.hpp

class greetings {
  text[] = {HI_BRETT_KOFFEIN, HI_JONPAS};
}

That would give a String value "Hello Brett" is not quoted properly warning and point to line 2 of config.hpp. It would be nice if there could be a tree showing the macros.
Ideally something like this

config.hpp:2
	HI_BRETT_KOFFEIN shortcuts.hpp:1
		HELLO(Brett) shortcuts.hpp:2
			HELLO greeting.hpp:1
		HELLO(Koffein) shortcuts.hpp:3
			HELLO greeting.hpp:1
	HI_JONPAS shortcuts.hpp:5
		HELLO(jonpas) shortcuts.hpp:5
			HELLO greeting.hpp:1
@jonpas jonpas added the enhancement New feature or request label Jun 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants