YarikTH / ureact

Functional reactive programming library for c++
Boost Software License 1.0
155 stars 10 forks source link

UREACT_DBG #109

Open YarikTH opened 1 year ago

YarikTH commented 1 year ago

UREACT_DBG or similar to https://github.com/sharkdp/dbg-macro

UREACT_DBG(src)
    | UREACT_DBG(ureact::transform(...))
    | UREACT_DBG(ureact::filter(...))
    | UREACT_DBG(ureact::once);
[example.cpp:10 (main)] src = {1, -2, 3} (int)
[example.cpp:11 (main)] ureact::transform(...) = {1.0, -2.0, 3.0} (float)
[example.cpp:12 (main)] ureact::filter(...) = {1.0, 3.0} (float)
[example.cpp:13 (main)] ureact::once = {1.0} (float)

It would allow to debug library and use it in examples.