mirror of
https://github.com/znc/znc.git
synced 2026-08-06 17:03:14 +02:00
Add clang-format configuration.
For now, it uses tabs like before, to make the diff easier to read/check. One of following commits will switch it to spaces.
This commit is contained in:
@@ -17,21 +17,23 @@
|
||||
#pragma once
|
||||
|
||||
class CPyRetString {
|
||||
public:
|
||||
public:
|
||||
CString& s;
|
||||
CPyRetString(CString& S) : s(S) {}
|
||||
static PyObject* wrap(CString& S) {
|
||||
CPyRetString* x = new CPyRetString(S);
|
||||
return SWIG_NewInstanceObj(x, SWIG_TypeQuery("CPyRetString*"), SWIG_POINTER_OWN);
|
||||
return SWIG_NewInstanceObj(x, SWIG_TypeQuery("CPyRetString*"),
|
||||
SWIG_POINTER_OWN);
|
||||
}
|
||||
};
|
||||
|
||||
class CPyRetBool {
|
||||
public:
|
||||
public:
|
||||
bool& b;
|
||||
CPyRetBool(bool& B) : b(B) {}
|
||||
static PyObject* wrap(bool& B) {
|
||||
CPyRetBool* x = new CPyRetBool(B);
|
||||
return SWIG_NewInstanceObj(x, SWIG_TypeQuery("CPyRetBool*"), SWIG_POINTER_OWN);
|
||||
return SWIG_NewInstanceObj(x, SWIG_TypeQuery("CPyRetBool*"),
|
||||
SWIG_POINTER_OWN);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user