progsource / maddy

C++ Markdown to HTML header-only parser library
MIT License
194 stars 39 forks source link

Refactored version() function in Parser class due to clashes with #define VERSION in various projects #45

Closed Ivansstyle closed 12 months ago

Ivansstyle commented 12 months ago

Due to generally global defines are written in CAPITALS and specifically version usually is written like so, Changed

  static const std::string VERSION() { static const std::string v = "1.2.0"; return v; }

to

static const std::string version() { static const std::string v = "1.2.0"; return v; }

Could not find any usages for this function elsewhere.

progsource commented 12 months ago

Thank you for your contribution!