Forums before death by AOL, social media and spammers... "We can't have nice things"
|    alt.comp.os.windows-xp    |    Actually wasn't too bad for a M$-OS    |    17,273 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 16,998 of 17,273    |
|    JJ to R.Wieser    |
|    Re: programming: how to EQUate a semicol    |
|    26 Nov 24 14:27:13    |
      XPost: alt.windows7.general, comp.os.ms-windows.programmer.win32       From: jj4public@outlook.com              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.              --- SoupGate-DOS v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca