Hacker News new | ask | show | jobs
by akoboldfrying 814 days ago
This seems like it could be very useful -- a bit like like Spin [1] but natively for C++. But I'm confused: Is this "just" a header-only library, as claimed? No runtime tool is needed on top? Also, what's with the ($) syntax? I didn't think $ was a valid C++ identifier (even though it can appear in mangled symbol names) -- will that code even compile?

[1] https://en.m.wikipedia.org/wiki/SPIN_model_checker

1 comments

$ is a preprocessor macro

  #define RL_INFO ::rl::debug_info(__FUNCTION__, __FILE__, __LINE__)
  #define $ RL_INFO