RDKit
Open-source cheminformatics and machine learning.
Loading...
Searching...
No Matches
BetterEnums.h
Go to the documentation of this file.
1//
2// Copyright (C) 2024 Novartis Biomedical Research and other RDKit contributors
3//
4// @@ All Rights Reserved @@
5// This file is part of the RDKit.
6// The contents are covered by the terms of the BSD license
7// which is included in the file license.txt, found at the root
8// of the RDKit source tree.
9//
10
11#pragma once
12
13#ifdef USE_BETTER_ENUMS
14#include "enum.h"
15#define BETTER_ENUM_CLASS BETTER_ENUM
16#else
17#define BETTER_ENUM(Enum, Underlying, ...) enum Enum : Underlying { __VA_ARGS__ }
18#define BETTER_ENUM_CLASS(Enum, Underlying, ...) enum class Enum : Underlying { __VA_ARGS__ }
19#endif