SSoelvsten / adiar

An I/O-efficient implementation of (Binary) Decision Diagrams
https://ssoelvsten.github.io/adiar/
MIT License
24 stars 13 forks source link

Add warning when calling `adiar_stats` without `ADIAR_STATS` #242

Closed SSoelvsten closed 2 years ago

SSoelvsten commented 2 years ago

Similar to adiar_printstat we should print to std::cerr if one tries to call adiar_stats while not having the ADIAR_STATS CMake variable set to ON.

AnnaBlume99 commented 2 years ago

Hvilken fil skal jeg bruge her?

SSoelvsten commented 2 years ago

I adiar/statistics.cpp har vi implementationen af de statistik relaterede funktioner. I adiar_printstat funktionen har du et eksempel på, hvordan koden ændres baseret på compiler flagene. Så, jeg tænkte noget i retning af

#ifndef ADIAR_STATS
  std::cerr << "<text here....>"
#endif