Re: Emitting a proper line numbers in code generated by macro

2013-08-01 Thread Brian Marick
On Jul 31, 2013, at 6:45 AM, Dmitry Groshev wrote: > > Is there any proper way to preserve line numbers in stack traces with code > generation? Midje goes to some effort to do this. It's not incredibly easy. src/midje/parsing/util/file_position.clj has the bulk of the code, but it's probabl

Emitting a proper line numbers in code generated by macro

2013-07-31 Thread Dmitry Groshev
Hello, dear All. Is there any proper way to preserve line numbers in stack traces with code generation? I have a bunch of macroses that store their arguments in a variable, and one that emits all stored forms with some modifications. Consequently, in all stacktraces I see the line that contains