home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / vms / 20724 < prev    next >
Encoding:
Internet Message Format  |  1993-01-11  |  894 b 

  1. Path: sparky!uunet!think.com!spool.mu.edu!agate!ucbvax!ORBSEN.UCG.IE!ELEHUMBORG
  2. From: ELEHUMBORG@ORBSEN.UCG.IE (It's more fun to compute)
  3. Newsgroups: comp.os.vms
  4. Subject: 'ASSUME' macro in VAXC?
  5. Message-ID: <01GTE71WF0CG0009RU@orbsen.ucg.ie>
  6. Date: 11 Jan 93 13:25:00 GMT
  7. Sender: usenet@ucbvax.BERKELEY.EDU
  8. Organization: The Internet
  9. Lines: 21
  10.  
  11.  
  12. Does anybody know any way of implementing compile-time checking in VAXC 
  13. similar to the ASSUME macro defined in LIB.MLB (or is it STARLET?)?
  14.  
  15. What I want to check for specifically is that the size of a certain struct
  16. is equal to 512 bytes and if not, print a warning message.
  17.  
  18. Say:
  19. check sizeof(struct foo) "Error: foo is the wrong size"
  20.  
  21. I don't really mind how kludgy the solution would have to be, as long as
  22. it works.
  23.  
  24. Thanks,
  25.  
  26.  
  27. Kenn Humborg
  28. elehumborg@orbsen.ucg.ie
  29. "I program my home computer,
  30.  Beam myself into the future" - Kraftwerk, 1981
  31.  
  32.