Skip to content

Commit

Permalink
Use constexpr constants instead of defines.
Browse files Browse the repository at this point in the history
This is both to avoid using the preprocessor in C++ in general,
and to prepare for future usage of the library as a C++ module.
  • Loading branch information
Klaim committed Feb 13, 2024
1 parent 6636250 commit 46f4024
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions include/xparrow/xparrow_version.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
* *
* The full license is in the file LICENSE, distributed with this software. *
***************************************************************************/
#ifndef XPARROW_VERSION_HPP
#define XPARROW_VERSION_HPP
#pragma once

#define XPARROW_VERSION_MAJOR 0
#define XPARROW_VERSION_MINOR 0
#define XPARROW_VERSION_PATCH 1

#endif
namespace xparrow
{
constexpr int XPARROW_VERSION_MAJOR = 0;
constexpr int XPARROW_VERSION_MINOR = 0;
constexpr int XPARROW_VERSION_PATCH = 1;
}

0 comments on commit 46f4024

Please sign in to comment.