Mercurial > flash_v2
comparison packages/infra/current/src/null.cxx @ 2:443894e2e912 ecos-v1_2_1-release
Block commit of eCos version 1.2.1
| author | jlarmour |
|---|---|
| date | Tue, 11 May 1999 12:24:34 +0000 |
| parents | 3111d98ba7b3 |
| children | c38311975d4f |
comparison
equal
deleted
inserted
replaced
| 1:72f549f0d891 | 2:443894e2e912 |
|---|---|
| 1 //========================================================================== | 1 //========================================================================== |
| 2 // | 2 // |
| 3 // null.cxx | 3 // null.cxx |
| 4 // | 4 // |
| 5 // Null trace and assert functions | 5 // Null trace and assert functions |
| 6 // | 6 // |
| 7 //========================================================================== | 7 //========================================================================== |
| 8 //####COPYRIGHTBEGIN#### | 8 //####COPYRIGHTBEGIN#### |
| 9 // | 9 // |
| 10 // ------------------------------------------- | 10 // ------------------------------------------- |
| 20 // | 20 // |
| 21 // The Original Code is eCos - Embedded Cygnus Operating System, released | 21 // The Original Code is eCos - Embedded Cygnus Operating System, released |
| 22 // September 30, 1998. | 22 // September 30, 1998. |
| 23 // | 23 // |
| 24 // The Initial Developer of the Original Code is Cygnus. Portions created | 24 // The Initial Developer of the Original Code is Cygnus. Portions created |
| 25 // by Cygnus are Copyright (C) 1998 Cygnus Solutions. All Rights Reserved. | 25 // by Cygnus are Copyright (C) 1998,1999 Cygnus Solutions. All Rights Reserved. |
| 26 // ------------------------------------------- | 26 // ------------------------------------------- |
| 27 // | 27 // |
| 28 //####COPYRIGHTEND#### | 28 //####COPYRIGHTEND#### |
| 29 //========================================================================== | 29 //========================================================================== |
| 30 //#####DESCRIPTIONBEGIN#### | 30 //#####DESCRIPTIONBEGIN#### |
| 31 // | 31 // |
| 32 // Author(s): nickg | 32 // Author(s): nickg |
| 33 // Contributors: nickg | 33 // Contributors: nickg |
| 34 // Date: 1997-09-15 | 34 // Date: 1997-09-15 |
| 35 // Purpose: Trace and assert functions | 35 // Purpose: Trace and assert functions |
| 36 // Description: The functions in this file are null implementations of the | 36 // Description: The functions in this file are null implementations of the |
| 37 // standard trace and assert functions. These can be used to | 37 // standard trace and assert functions. These can be used to |
| 38 // eliminate all trace and assert messages without recompiling. | 38 // eliminate all trace and assert messages without recompiling. |
| 39 // | 39 // |
| 40 //####DESCRIPTIONEND#### | 40 //####DESCRIPTIONEND#### |
| 41 // | 41 // |
| 52 #include <cyg/infra/cyg_type.h> // base types | 52 #include <cyg/infra/cyg_type.h> // base types |
| 53 #include <cyg/infra/cyg_trac.h> // tracing macros | 53 #include <cyg/infra/cyg_trac.h> // tracing macros |
| 54 #include <cyg/infra/cyg_ass.h> // assertion macros | 54 #include <cyg/infra/cyg_ass.h> // assertion macros |
| 55 | 55 |
| 56 externC void | 56 externC void |
| 57 cyg_assert_fail( char *psz_func, char *psz_file, cyg_uint32 linenum, | 57 cyg_assert_fail( const char *psz_func, const char *psz_file, |
| 58 char *psz_msg ) | 58 cyg_uint32 linenum, const char *psz_msg ) |
| 59 { | 59 { |
| 60 for(;;); | 60 for(;;); |
| 61 }; | 61 }; |
| 62 #endif // not CYGDBG_USE_ASSERTS | 62 #endif // not CYGDBG_USE_ASSERTS |
| 63 | 63 |
| 121 // Assert functions: | 121 // Assert functions: |
| 122 | 122 |
| 123 #ifdef CYGDBG_USE_ASSERTS | 123 #ifdef CYGDBG_USE_ASSERTS |
| 124 | 124 |
| 125 externC void | 125 externC void |
| 126 cyg_assert_fail( char *psz_func, char *psz_file, cyg_uint32 linenum, | 126 cyg_assert_fail( const char *psz_func, const char *psz_file, |
| 127 char *psz_msg ) | 127 cyg_uint32 linenum, const char *psz_msg ) |
| 128 { | 128 { |
| 129 for(;;); | 129 for(;;); |
| 130 }; | 130 }; |
| 131 | 131 |
| 132 extern "C" | 132 extern "C" |
