ADT
        ast-experimental
        enum
        forall-pointer-decay
        jacob/cs343-translation
        new-ast-unique-expr
        pthread-emulation
        qualifiedEnum
      
      
        
          | 
            Last change
 on this file since da602aec was             67982887, checked in by Peter A. Buhr <pabuhr@…>, 7 years ago           | 
        
        
          | 
             
specialize thesis directory-names 
 
           | 
        
        
          
            
              - 
Property                 mode
 set to                 
100644
               
             
           | 
        
        
          | 
            File size:
            178 bytes
           | 
        
      
      
| Line |   | 
|---|
| 1 | #include "scope_guard.h"
 | 
|---|
| 2 | 
 | 
|---|
| 3 | extern "C" {
 | 
|---|
| 4 |   void free(void *);
 | 
|---|
| 5 | }
 | 
|---|
| 6 | 
 | 
|---|
| 7 | int main() {
 | 
|---|
| 8 |   int * x = malloc(sizeof(10));
 | 
|---|
| 9 |   // ScopeGuard(int*, void) foo;
 | 
|---|
| 10 |   ScopeGuard foo;
 | 
|---|
| 11 |   foo.fn = free;
 | 
|---|
| 12 | }
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.