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

New macro API #22

Open
si14 opened this issue Aug 13, 2011 · 0 comments
Open

New macro API #22

si14 opened this issue Aug 13, 2011 · 0 comments

Comments

@si14
Copy link
Member

si14 commented Aug 13, 2011

2 forms — full ?DBG("~p ~p", [Foo, Bar]) and short ?DBG({Foo, Bar})
second one can be taken as first one with automagically formed format string
every arg can be replaced with {lazy, Fun} — in this case alog_if:log_lazy is called instead of alog_if:log, or with {lazy, "Name", Fun} (in this case Name will be used as a name of resulting value in tuple expression)
new form: ?DBG(["foobar", ARBITRARY_EXPRESSION])
new macro: ?DBG_TC() that measures time of execution of list-expr and lazy funs

@ghost ghost assigned si14 Aug 13, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant