1 
//////////////////////////////////////////////////////////////////////////////
2 
//         CTA++, C++ Test Aider, Version 3.x / ctastub version 1.4         //
3 
//                                                                          //
4 
//                        GENERATED STUBFUNCTION FILE                       //
5 
//                                                                          //
6 
//                   Copyright (c) 1999-2004 Testwell Oy                    //
7 
//////////////////////////////////////////////////////////////////////////////
8 
9 
// File created : Thu 22 Jan 2004 11:19:13 
10 
// From file    : E:\devel\cta302\examples\vsList\memory.h 
11 
12 
13 
14 
//////////////////////////////////////////////////////////////////////////////
15 
//
16 
// Standalone stubfunctions 
17 
18 
// ----------------------------------------------------------------------
19 
// Stubs needed by class 'List'. By default stubs use BODY variant
20 
// nr. 1.
21 
// ----------------------------------------------------------------------
22 
23 
STUB(void*, List_malloc(size_t size), List_malloc_stub)
24 
    BODY(1) { 
25 
        MSG("Allocating some memory...");
26 
        PUT(size);
27 
        DECL(void* p = malloc(size));
28 
        PUT(p);
29 
        DO(return p); 
30 
    }
31 
ENDSTUB
32 
33 
STUB(void*, List_realloc(void* ptr, size_t size), List_realloc_stub)
34 
    BODY(1) { 
35 
        MSG("Allocating some more memory...");
36 
        PUT(ptr);
37 
        PUT(size);
38 
        DO(return realloc(ptr, size)); 
39 
    }
40 
ENDSTUB
41 
42 
VOIDSTUB(List_free(void* ptr), List_free_stub)
43 
    BODY(1) { 
44 
        MSG("Freeing memory");
45 
        PUT(ptr);
46 
        DO(free(ptr));
47 
    }
48 
ENDVOIDSTUB
49 
50 
// End of CTA++/ctastub generated stubfunctions