only display debug info when debug flag set
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11507 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
41d3c98993
commit
b9ff3b0fae
1 changed files with 3 additions and 3 deletions
|
|
@ -23,10 +23,10 @@
|
|||
using namespace std;
|
||||
|
||||
struct XX {
|
||||
XX() { cout << "XX()" << endl; }
|
||||
XX() { if (debug) cout << "XX()" << endl; }
|
||||
XX(int i) { if (debug) cout << "XX(" << i << ")" << endl; }
|
||||
XX(const XX &other) { cout << "XX(const XX &)" << endl; }
|
||||
XX& operator =(const XX &other) { cout << "operator=(const XX &)" << endl; return *this; }
|
||||
XX(const XX &other) { if (debug) cout << "XX(const XX &)" << endl; }
|
||||
XX& operator =(const XX &other) { if (debug) cout << "operator=(const XX &)" << endl; return *this; }
|
||||
~XX() { if (debug) cout << "~XX()" << endl; }
|
||||
static XX create() {
|
||||
return XX(123);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue