home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!think.com!spool.mu.edu!agate!ucbvax!ORBSEN.UCG.IE!ELEHUMBORG
- From: ELEHUMBORG@ORBSEN.UCG.IE (It's more fun to compute)
- Newsgroups: comp.os.vms
- Subject: 'ASSUME' macro in VAXC?
- Message-ID: <01GTE71WF0CG0009RU@orbsen.ucg.ie>
- Date: 11 Jan 93 13:25:00 GMT
- Sender: usenet@ucbvax.BERKELEY.EDU
- Organization: The Internet
- Lines: 21
-
-
- Does anybody know any way of implementing compile-time checking in VAXC
- similar to the ASSUME macro defined in LIB.MLB (or is it STARLET?)?
-
- What I want to check for specifically is that the size of a certain struct
- is equal to 512 bytes and if not, print a warning message.
-
- Say:
- check sizeof(struct foo) "Error: foo is the wrong size"
-
- I don't really mind how kludgy the solution would have to be, as long as
- it works.
-
- Thanks,
-
-
- Kenn Humborg
- elehumborg@orbsen.ucg.ie
- "I program my home computer,
- Beam myself into the future" - Kraftwerk, 1981
-
-