//////////////////////////////////////////////////////////////////////////////
//         CTA++, C++ Test Aider, Version 3.x / ctastub version 1.4         //
//                                                                          //
//                        GENERATED STUBFUNCTION FILE                       //
//                                                                          //
//                   Copyright (c) 1999-2004 Testwell Oy                    //
//////////////////////////////////////////////////////////////////////////////

// File created : Thu 22 Jan 2004 11:19:13
// From file    : E:\devel\cta302\examples\vsList\memory.h



//////////////////////////////////////////////////////////////////////////////
//
// Standalone stubfunctions

// ----------------------------------------------------------------------
// Stubs needed by class 'List'. By default stubs use BODY variant
// nr. 1.
// ----------------------------------------------------------------------

STUB(void*, List_malloc(size_t size), List_malloc_stub)
    BODY(1) {
        MSG("Allocating some memory...");
        PUT(size);
        DECL(void* p = malloc(size));
        PUT(p);
        DO(return p);
    }
ENDSTUB

STUB(void*, List_realloc(void* ptr, size_t size), List_realloc_stub)
    BODY(1) {
        MSG("Allocating some more memory...");
        PUT(ptr);
        PUT(size);
        DO(return realloc(ptr, size));
    }
ENDSTUB

VOIDSTUB(List_free(void* ptr), List_free_stub)
    BODY(1) {
        MSG("Freeing memory");
        PUT(ptr);
        DO(free(ptr));
    }
ENDVOIDSTUB

// End of CTA++/ctastub generated stubfunctions