From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_00,INVALID_MSGID, PP_MIME_FAKE_ASCII_TEXT autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,d89ff62b8449f197 X-Google-Attributes: gid103376,public From: Mattias Sj�sv�rd Subject: Re: Ada and robots Date: 1997/07/02 Message-ID: <33B9FD4D.14AA@aom.ericsson.se>#1/1 X-Deja-AN: 254020342 References: <9706302316.AA23644@stealth.ctron.com> Organization: Ericsson Newsgroups: comp.lang.ada Date: 1997-07-02T00:00:00+00:00 List-Id: Huy Vo wrote: > Basically you have to hard code the line number in the code? > And everytime you add or delete something before that line, you change > that hard coded number again? __LINE__ is supposed preprocessed by > a program so the programmer doesn't have to count. As to portability, > I don't know a C compiler that doesn't have __LINE__. Do you? I know several. In fact no C compiler understands __LINE__. The standard preprocessor cpp does however understand __LINE__. It is perfectly possible to use cpp on Ada source as well, but I wouldn't recommend it. Decent version control systems usually supply a way to get the integer literal of the current line number inserted in the source. /Sj�sv�rd