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: Re: Make C look like something Else?


  • To: ukha_d@xxxxxxx
  • Subject: Re: Re: Make C look like something Else?
  • From: andy.powell@xxxxxxx
  • Date: Wed, 6 Jun 2001 15:48:28 +0200
  • 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

Mark,

Thanks, Boes that mean then that I could create my own include file with=20
the Defines in it and just ensure that it was the very first include (ie=20
before any other code...??

and I guess that this:=20

#define END PROC }

is not possible...

Andy





"Mark Hetherington" <mark.egroups@xxxxxxx>
06/06/2001 15:34
Please respond to ukha_d

=20
To:     ukha_d@xxxxxxx
cc:=20
Subject:        [ukha_d] Re: Make C look like something Else?

--- 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/






*
********************** DISCLAIMER **************************
This message is intended only for use by the person
to whom it is addressed. It may contain information
that is privileged and confidential. Its content does
not constitute a formal commitment by Lombard Odier.
If you are not the intended recipient of this message,
kindly notify the sender immediately and destroy this
message. Thank you.
*************************************************************

=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.