ADT
        aaron-thesis
        arm-eh
        ast-experimental
        cleanup-dtors
        deferred_resn
        demangler
        enum
        forall-pointer-decay
        jacob/cs343-translation
        jenkins-sandbox
        new-ast
        new-ast-unique-expr
        new-env
        no_list
        persistent-indexer
        pthread-emulation
        qualifiedEnum
        resolv-new
        with_gc
      
      
        
          | 
            Last change
 on this file since 8c14e29 was             9c14ae9, checked in by Rob Schluntz <rschlunt@…>, 9 years ago           | 
        
        
          | 
             
add thesis source 
 
           | 
        
        
          
            
              - 
Property                 mode
 set to                 
100644
               
             
           | 
        
        
          | 
            File size:
            178 bytes
           | 
        
      
      
| Rev | Line |   | 
|---|
| [9c14ae9] | 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.