Re: programming: how to EQUate a semicolon ?
JJ <[email protected]>
| Newsgroups | alt.comp.os.windows-xp,alt.windows7.general,comp.os.ms-windows.programmer.win32 |
|---|---|
| Organization | To protect and to server |
| Message-ID | <[email protected]> |
On Mon, 25 Nov 2024 09:13:22 +0100, R.Wieser wrote: > Hello all, > > Using Borlands Tasm32 v5.0 I've got the next code (example) : > > foo EQU call bar > > and use it like this: > > foo,1234 > > Now I want to suppress the calling of "bar", and thought about just changing > the "foo" equate with a semi-colon (imagine many calls to "bar" which > disappear as a result of a single change). The end result would than look > like this : > > foo EQU ; > > ;,1234 > > (after being resolved) > > The problem is that I can't seem to find a way to EQUate a semicolon (as its > regarded to be the start of a comment). :-( > > Does anyone know how its supposed to be done ? > > Remarks: > > Borlands Tasm32 doesn't have a pre-processor. > > I already found a solution using an empty macro, but would like to know if > it can be done with an EQUate too (just like the other one. it looks > better/cleaner to me). > > Regards, > Rudy Wieser `EQU` is for defining a constant. It can't work like a macro. In term of value/data, `;` is valid only as a character/string. So you're missing something.