home *** CD-ROM | disk | FTP | other *** search
/ Aminet 18 / aminetcdnumber181997.iso / Aminet / dev / gcc / ixemulsrc.lha / ixemul / include / machine / cdefs.h < prev    next >
C/C++ Source or Header  |  1996-12-11  |  857b  |  36 lines

  1. /*    $NetBSD: cdefs.h,v 1.2 1995/03/23 20:10:33 jtc Exp $    */
  2.  
  3. /*
  4.  * Written by J.T. Conklin <jtc@wimsey.com> 01/17/95.
  5.  * Public domain.
  6.  */
  7.  
  8. #ifndef    _M68K_CDEFS_H_
  9. #define    _M68K_CDEFS_H_
  10.  
  11. #ifdef __STDC__
  12. #define _C_LABEL(x)    _STRING(_ ## x)
  13. #else
  14. #define _C_LABEL(x)    _STRING(_/**/x)
  15. #endif
  16.  
  17. #ifdef __GNUC__
  18. #ifdef __STDC__
  19. #define __indr_reference(sym,alias)    \
  20.     __asm__(".stabs \"_" #alias "\",11,0,0,0");    \
  21.     __asm__(".stabs \"_" #sym "\",1,0,0,0")
  22. #define __warn_references(sym,msg)    \
  23.     __asm__(".stabs \"" msg "\",30,0,0,0");        \
  24.     __asm__(".stabs \"_" #sym "\",1,0,0,0")
  25. #else
  26. #define __indr_reference(sym,alias)    \
  27.     __asm__(".stabs \"_/**/alias\",11,0,0,0");    \
  28.     __asm__(".stabs \"_/**/sym\",1,0,0,0")
  29. #define __warn_references(sym,msg)    \
  30.     __asm__(".stabs msg,30,0,0,0");            \
  31.     __asm__(".stabs \"_/**/sym\",1,0,0,0")
  32. #endif
  33. #endif
  34.  
  35. #endif /* !_M68K_CDEFS_H_ */
  36.