/src/qpdf/include/qpdf/QTC.hh
Line | Count | Source |
1 | | // Copyright (c) 2005-2024 Jay Berkenbilt |
2 | | // |
3 | | // This file is part of qpdf. |
4 | | // |
5 | | // Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except |
6 | | // in compliance with the License. You may obtain a copy of the License at |
7 | | // |
8 | | // http://www.apache.org/licenses/LICENSE-2.0 |
9 | | // |
10 | | // Unless required by applicable law or agreed to in writing, software distributed under the License |
11 | | // is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express |
12 | | // or implied. See the License for the specific language governing permissions and limitations under |
13 | | // the License. |
14 | | // |
15 | | // Versions of qpdf prior to version 7 were released under the terms of version 2.0 of the Artistic |
16 | | // License. At your option, you may continue to consider qpdf to be licensed under those terms. |
17 | | // Please see the manual for additional information. |
18 | | |
19 | | #ifndef QTC_HH |
20 | | #define QTC_HH |
21 | | |
22 | | #include <qpdf/DLL.h> |
23 | | |
24 | | // Defining QPDF_DISABLE_QTC will effectively compile out any QTC::TC calls in any code that |
25 | | // includes this file, but QTC will still be built into the library. That way, it is possible to |
26 | | // build and package qpdf with QPDF_DISABLE_QTC while still making QTC::TC available to end users. |
27 | | |
28 | | namespace QTC |
29 | | { |
30 | | QPDF_DLL |
31 | | void TC_real(char const* const scope, char const* const ccase, int n = 0); |
32 | | |
33 | | inline void |
34 | | TC(char const* const scope, char const* const ccase, int n = 0) |
35 | 4.61k | { |
36 | | #ifndef QPDF_DISABLE_QTC |
37 | | TC_real(scope, ccase, n); |
38 | | #endif // QPDF_DISABLE_QTC |
39 | 4.61k | } |
40 | | }; // namespace QTC |
41 | | |
42 | | #endif // QTC_HH |