| 
            Last change
 on this file since 8730e57 was             5251c6b, checked in by Andrew Beach <ajbeach@…>, 11 months ago           | 
        
        
          | 
             
Changed some inline declarations to static or static inline (which are the same except for intent communication). This makes them more robust to inline changes. 
 
           | 
        
        
          
            
              - 
Property                 mode
 set to                 
100644
               
             
           | 
        
        
          | 
            File size:
            596 bytes
           | 
        
      
      
| Line |   | 
|---|
| 1 | // Common tools for the exception tests.
 | 
|---|
| 2 | 
 | 
|---|
| 3 | // Echo when a destructor is run and an area/block is left.
 | 
|---|
| 4 | 
 | 
|---|
| 5 | #include <fstream.hfa>
 | 
|---|
| 6 | 
 | 
|---|
| 7 | struct loud_exit {
 | 
|---|
| 8 |     const char * area;
 | 
|---|
| 9 | };
 | 
|---|
| 10 | 
 | 
|---|
| 11 | static inline void ?{}(loud_exit & this, const char * area) {
 | 
|---|
| 12 |     this.area = area;
 | 
|---|
| 13 | }
 | 
|---|
| 14 | 
 | 
|---|
| 15 | static inline void ^?{}(loud_exit & this) {
 | 
|---|
| 16 |     sout | "Exiting: " | this.area;
 | 
|---|
| 17 | }
 | 
|---|
| 18 | 
 | 
|---|
| 19 | struct loud_region {
 | 
|---|
| 20 |         const char * region;
 | 
|---|
| 21 | };
 | 
|---|
| 22 | 
 | 
|---|
| 23 | static inline void ?{}(loud_region & this, const char * region) {
 | 
|---|
| 24 |         this.region = region;
 | 
|---|
| 25 |         sout | "Entering: " | region;
 | 
|---|
| 26 | }
 | 
|---|
| 27 | 
 | 
|---|
| 28 | static inline void ^?{}(loud_region & this) {
 | 
|---|
| 29 |         sout | "Exiting: " | this.region;
 | 
|---|
| 30 | }
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.