home *** CD-ROM | disk | FTP | other *** search
/ Aminet 18 / aminetcdnumber181997.iso / Aminet / dev / gcc / ixemulsrc.lha / ixemul / stack / stack.c < prev    next >
C/C++ Source or Header  |  1996-12-11  |  305b  |  19 lines

  1. #include "ixemul.h"
  2.  
  3. /* I wish I knew a more elegant way to do this:
  4.  
  5.    sstr(STACKSIZE) -> str((16384)) -> "(16384)"
  6. */
  7. #define str(s) #s
  8. #define sstr(s) str(s)
  9.  
  10. asm("
  11.     .data
  12.     .even
  13.     .globl    ___stack
  14.     .ascii    \"StCk\"    | Magic cookie
  15. ___stack:
  16.     .long    " sstr(STACKSIZE) "
  17.     .ascii    \"sTcK\"    | Magic cookie
  18. ");
  19.