Last change
on this file since 302 was 302, checked in by bird, 22 years ago |
More testing...
|
-
Property cvs2svn:cvs-rev
set to
1.3
-
Property svn:eol-style
set to
native
-
Property svn:executable
set to
*
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
629 bytes
|
Line | |
---|
1 | #define USE_INLINE
|
---|
2 | class foo
|
---|
3 | {
|
---|
4 | char ch;
|
---|
5 | public:
|
---|
6 | #ifdef USE_INLINE
|
---|
7 | foo()
|
---|
8 | {
|
---|
9 | ch = 'k';
|
---|
10 | int ch2 = 1;
|
---|
11 | ch += ch2;
|
---|
12 | int ch3 = 1;
|
---|
13 | ch += ch3;
|
---|
14 | #if 1
|
---|
15 | if (ch == 123)
|
---|
16 | {
|
---|
17 | int ch4 = 23;
|
---|
18 | ch -= ch4;
|
---|
19 | }
|
---|
20 | #endif
|
---|
21 | }
|
---|
22 | #else
|
---|
23 | foo();
|
---|
24 | #endif
|
---|
25 | };
|
---|
26 |
|
---|
27 | #ifndef USE_INLINE
|
---|
28 | foo::foo()
|
---|
29 | {
|
---|
30 | ch = 'k';
|
---|
31 | #if 1
|
---|
32 | int ch2 = 1;
|
---|
33 | ch += ch2;
|
---|
34 | int ch3 = 1;
|
---|
35 | ch += ch3;
|
---|
36 | #if 0
|
---|
37 | if (ch == 123)
|
---|
38 | {
|
---|
39 | int ch4 = 23;
|
---|
40 | ch -= ch4;
|
---|
41 | }
|
---|
42 | #endif
|
---|
43 | #endif
|
---|
44 | }
|
---|
45 | #endif
|
---|
46 |
|
---|
47 |
|
---|
48 | int main(int argc, char **argv)
|
---|
49 | {
|
---|
50 | foo obj;
|
---|
51 | return 0;
|
---|
52 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.