Changeset 669 for trunk/src/emx/include


Ignore:
Timestamp:
Sep 9, 2003, 11:50:03 AM (22 years ago)
Author:
bird
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/emx/include/emx/umalloc.h

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r668 r669  
    760760
    761761
     762static __inline__ void _um_abort (const char *pszmsg)
     763{
     764  /* Use the 'syscall' write for safest possible path. */
     765  extern int __write (int handle, const void *buf, size_t nbytes);
     766  __write (2, "\r\n!_um_abort!", 13);
     767  if (pszmsg)
     768    {
     769      const char *psz = pszmsg;
     770      while (*psz)
     771        psz++;
     772      __write (2, pszmsg, psz - pszmsg);
     773    }
     774  __write (2, "\r\n", 2);
     775  __asm__ __volatile__ ("int $3");
     776}
     777
     778
    762779#if defined (__cplusplus)
    763780}
Note: See TracChangeset for help on using the changeset viewer.