🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.acorn.tech
Article #883

Objasm/Aasm conditional includes

#883
From: Jon Thackray
Date: Mon, 11 Jan 1993 13:21
28 lines
1205 bytes
Well no-one else seems to solved this problem, so here's a solution.
The problem is to avoid multiple scanning of files acquired by GET,
similar to the multiple include problem in C. Objasm and AAsm have an
operator :DEF: for seeing if variables are defined yet. Thus one can
write:-

 [ :LNOT:(:DEF:A)
 GBLA A
;
; A is actually a variable whose name should be unique to this source
; file
;
; Insert your source here
;
 ]
 END

PS This may well be using an undocumented feature, it's a long time
since I wrote the code to implement it. and even longer since I've
seen the released documentation.
--

Jon Thackray                    jont@uk.co.harlqn       44 223 872522 (voice)
Harlequin Ltd.                  jgt1@uk.ac.cam.phx      44 223 872519 (fax)
Barrington Hall
Barrington
Cambridge CB2 5RG
England
Technical Details
Message-ID: <JONT.93Jan11132146@ml.harlqn.co.uk>
Path: arc1-ca.pugleaf.net!sparky!uunet!pipex!harlqn.co.uk!harlqn!jont

Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.acorn.tech
Path: arc1-ca.pugleaf.net!sparky!uunet!pipex!harlqn.co.uk!harlqn!jont
From: jont@harlqn.co.uk (Jon Thackray)
Subject: Objasm/Aasm conditional includes
Message-ID: <JONT.93Jan11132146@ml.harlqn.co.uk>
Lines: 28
Sender: news@harlqn.co.uk (Usenet News Account)
Organization: Harlequin Limited, Cambridge, England
Date: Mon, 11 Jan 1993 13:21:46 GMT