Changeset e6955b1 for src/Common/Assert.cc
- Timestamp:
- Aug 20, 2016, 7:04:17 PM (8 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 80722d0
- Parents:
- 8b7ee09
- git-author:
- Peter A. Buhr <pabuhr@…> (08/20/16 13:18:07)
- git-committer:
- Peter A. Buhr <pabuhr@…> (08/20/16 19:04:17)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Common/Assert.cc
r8b7ee09 re6955b1 10 10 // Created On : Thu Aug 18 13:26:59 2016 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Aug 18 23:40:29201613 // Update Count : 812 // Last Modified On : Fri Aug 19 17:07:08 2016 13 // Update Count : 10 14 14 // 15 15 16 16 #include <assert.h> 17 #include <cstdarg> 18 #include <cstdio> 19 #include <cstdlib> 17 #include <cstdarg> // varargs 18 #include <cstdio> // fprintf 19 #include <cstdlib> // abort 20 20 21 21 extern const char * __progname; // global name of running executable (argv[0]) … … 26 26 void __assert_fail( const char *assertion, const char *file, unsigned int line, const char *function ) { 27 27 fprintf( stderr, CFA_ASSERT_FMT ".\n", __progname, function, line, file ); 28 exit( EXIT_FAILURE);28 abort(); 29 29 } 30 30 … … 35 35 va_start( args, fmt ); 36 36 vfprintf( stderr, fmt, args ); 37 exit( EXIT_FAILURE);37 abort(); 38 38 } 39 39
Note: See TracChangeset
for help on using the changeset viewer.