Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!mailrus!cornell!uw-beaver!ssc-vax!uvicctr.UVic.CA!franklin From: franklin@uvicctr.UVic.CA.UUCP (Katherine Franklin) Newsgroups: comp.sys.mac.programmer Subject: MPW Pascal and self referencing Message-ID: <939@uvicctr.UVic.CA.UUCP> Date: 2 Mar 90 20:37:26 GMT Reply-To: franklin@uvicctr.UUCP (Katherine Franklin) Distribution: na Organization: University of Victoria, Victoria B.C. Canada Lines: 23 I am writing an MPW Pascal tool, and I have written an invariant check function. What I would like to do is call is this function many times throughout the program and each time the invariant *doesn't* hold is to write a message to the console. I would like an easily maintainable way of telling the user which call to the invariant function failed. I don't want to hard code a label for them, because that makes them very hard to maintain if I insert another function call in my program. Unix C has a macro variable that allows you to pass the current line number in the source code on to the object code to report during execution. I would like to do this, or some other dynamic way. Is this possible ? if so, how ? Thanks, Katherine ------ Katherine Franklin franklin@uvicctr.uvic.ca University of Victoria franklin@uvunix.bitnet Victoria, BC, Canada