4 ms·
If you're asking about debugging macros, I've put a huge effort to this [1]. There are several macros that help you test, debug, and report errors at compile-ti
by Hirrolot 5y ago
If you're asking about debugging macros, I've put a huge effort to this [1]. There are several macros that help you test, debug, and report errors at compile-time. For example, you can make calls to ML99_abort and see the expansion with -E. Usually I debug macros in this way.
If you're asking about debugging code generated by macros, Interface99 has no problems with it since the generated code is trivial, pretty much as if you wrote by hand. Datatype99 can introduce a little inconvenience into it as it generates a single-step for-loop for each variable binding [2], but this should not be a big problem too.
[1]: https://hirrolot.gitbook.io/metalang99/testing-debugging-and-error-reporting https://hirrolot.gitbook.io/metalang99/testing-debugging-and...
[2]: https://hirrolot.github.io/posts/compiling-algebraic-data-types-in-pure-c99.html https://hirrolot.github.io/posts/compiling-algebraic-data-ty...
- jjnoakes 5y agoThanks for the info!