blob: 27909571a979e7feda5f96b4d612743fe9a00316 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#ifndef SAMPLE_H
#define SAMPLE_H
#include "libsamplemacros.h"
// namespace with the same name of the current package to try to mess up with the generator
namespace sample
{
// to increase the mess we add a class with the same name of the package/namespace
class LIBSAMPLE_API sample
{
public:
sample(int value = 0);
int value() const;
private:
int m_value;
};
// shiboken must not generate richcompare for namespace sample
LIBSAMPLE_API bool operator==(const sample &s1, const sample &s2);
const int INT_CONSTANT = 42;
}
#endif // SAMPLE_H
|