The UK Home Automation Archive

Archive Home
Group Home
Search Archive


Advanced Search

The UKHA-ARCHIVE IS CEASING OPERATIONS 31 DEC 2024


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Make C look like something Else?


  • To: ukha_d@xxxxxxx
  • Subject: Re: Make C look like something Else?
  • From: "Mark Hetherington" <mark.egroups@xxxxxxx>
  • Date: Wed, 06 Jun 2001 13:34:09 -0000
  • Delivered-to: rich@xxxxxxx
  • Delivered-to: mailing list ukha_d@xxxxxxx
  • Mailing-list: list ukha_d@xxxxxxx; contact ukha_d-owner@xxxxxxx
  • Reply-to: ukha_d@xxxxxxx

--- In ukha_d@y..., andy.powell@l... wrote:
> Folks,
>=20
> I seem to remember many moons ago someone telling me that you could=20
> basically make C look like another language.. does anyone know any=20
more=20
> detail on how this is achieved? Or am I talking B%ll=A3%ks ?
>=20

You could do it with macros.=20

E.g.=20

For the C code

void Test()
{
printf("test");
while(!kbhit));
}


You use

#define STARTPROC(name) void (name)() {
#define ENDPROC }
#define PRINT printf
#define WAITKEY while(!kbhit));

STARTPROC Test

PRINT("test");
WAITKEY

ENDPROC


HTH.
Mark.




=20

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/=20




Home | Main Index | Thread Index

Comments to the Webmaster are always welcomed, please use this contact form . Note that as this site is a mailing list archive, the Webmaster has no control over the contents of the messages. Comments about message content should be directed to the relevant mailing list.