3 //============================================================================
7 // Host side implementation of the check_func() and check_data()
10 //============================================================================
11 //####COPYRIGHTBEGIN####
13 // ----------------------------------------------------------------------------
14 // Copyright (C) 1998, 1999, 2000 Red Hat, Inc.
16 // This file is part of the eCos host tools.
18 // This program is free software; you can redistribute it and/or modify it
19 // under the terms of the GNU General Public License as published by the Free
20 // Software Foundation; either version 2 of the License, or (at your option)
23 // This program is distributed in the hope that it will be useful, but WITHOUT
24 // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
25 // FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
28 // You should have received a copy of the GNU General Public License along with
29 // this program; if not, write to the Free Software Foundation, Inc.,
30 // 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
32 // ----------------------------------------------------------------------------
34 //####COPYRIGHTEND####
35 //============================================================================
36 //#####DESCRIPTIONBEGIN####
42 // Purpose: To provide a host-side implementation of two of the
43 // eCos assertion facilities. facilities.
45 //####DESCRIPTIONEND####
46 //============================================================================
51 #include "cyg/infra/cyg_ass.h"
55 // -------------------------------------------------------------------------
56 // It is convenient to have cyg_check_data_ptr() and cyg_check_func_ptr()
57 // in a separate file from cyg_assert_fail(). That way users can override
58 // cyg_assert_fail() itself in application code without losing access to
59 // the check_data and check_func routines.
61 // The actual implementation is very limited. It might be possible to
62 // do better on specific platforms.
65 cyg_check_data_ptr( void * ptr )
71 cyg_check_func_ptr ( void (*ptr)(void) )