Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C Programming > Preprocessing directive like #error which doesn't stop compilation

Reply
Thread Tools

Preprocessing directive like #error which doesn't stop compilation

 
 
Alex Vinokur
Guest
Posts: n/a
 
      06-26-2003
Is there any preprocessing directive like #error which doesn't stop compilation?

For instance,
# info text


==========================================
Alex Vinokur
(E-Mail Removed)
http://www.simtel.net/pub/oth/19088.html
http://sourceforge.net/users/alexvn
==========================================


 
Reply With Quote
 
 
 
 
Simon Biber
Guest
Posts: n/a
 
      06-26-2003
"Alex Vinokur" <(E-Mail Removed)> wrote:
> Is there any preprocessing directive like #error which
> doesn't stop compilation?
>
> For instance,
> # info text


There is none in standard C, but some compilers support #warning.

--
Simon.


 
Reply With Quote
 
 
 
 
Darrell Grainger
Guest
Posts: n/a
 
      06-26-2003
On Thu, 26 Jun 2003, Alex Vinokur wrote:

> Is there any preprocessing directive like #error which doesn't stop compilation?


There is nothing defined by the C standard but some compilers offer
non-standard preprocessor directives like #warning. Additionally, some
compilers will have a #pragma option for spitting out warnings or
comments.

You'll have to check your compiler documentation or ask in a newsgroup
that would be familar with your compiler.

> For instance,
> # info text
>
>
> ==========================================
> Alex Vinokur
> (E-Mail Removed)
> http://www.simtel.net/pub/oth/19088.html
> http://sourceforge.net/users/alexvn
> ==========================================
>
>
>


--
main(){int j=1234;char t[]=":@abcdefghijklmnopqrstuvwxyz.\n",*i=
"iqgbgxmdbjlgdv.lksrqek.n";char *strchr(const char *,int);while(
*i){j+=strchr(t,*i++)-t;j%=sizeof t-1;putchar(t[j]);} return 0;}

 
Reply With Quote
 
Dan Pop
Guest
Posts: n/a
 
      06-26-2003
In <(E-Mail Removed)> http://www.velocityreviews.com/forums/(E-Mail Removed) (Darrell Grainger) writes:

>On Thu, 26 Jun 2003, Alex Vinokur wrote:
>
>> Is there any preprocessing directive like #error which doesn't stop compilation?

>
>There is nothing defined by the C standard but some compilers offer
>non-standard preprocessor directives like #warning. Additionally, some
>compilers will have a #pragma option for spitting out warnings or
>comments.
>
>You'll have to check your compiler documentation or ask in a newsgroup
>that would be familar with your compiler.


Even better, give up the idea. If the issue is not important enough to
warrant an #error, don't bother the user with unnecessary compilation
messages.

Dan
--
Dan Pop
DESY Zeuthen, RZ group
Email: (E-Mail Removed)
 
Reply With Quote
 
Vijay B
Guest
Posts: n/a
 
      06-26-2003
C does not provide a mechanism to let compilation proceed. However if
you are familiar with a bit of system programming then you can neglect
the signals (which in most cases caouse the program to abort). This is
very dangerous ...but if you are absolutely sure that you want to
block out signals then go ahead. This is done via the sigaction system
call . Take a look at the documentation for sigaction to see how to
block the signals. This is more of an OS thing rather than a C
language and is a solution for only Unix systems


Vijay

(E-Mail Removed) (Darrell Grainger) wrote in message news:<(E-Mail Removed)>...
> On Thu, 26 Jun 2003, Alex Vinokur wrote:
>
> > Is there any preprocessing directive like #error which doesn't stop compilation?

>
> There is nothing defined by the C standard but some compilers offer
> non-standard preprocessor directives like #warning. Additionally, some
> compilers will have a #pragma option for spitting out warnings or
> comments.
>
> You'll have to check your compiler documentation or ask in a newsgroup
> that would be familar with your compiler.
>
> > For instance,
> > # info text
> >
> >
> > ==========================================
> > Alex Vinokur
> > (E-Mail Removed)
> > http://www.simtel.net/pub/oth/19088.html
> > http://sourceforge.net/users/alexvn
> > ==========================================
> >
> >
> >

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
"error: invalid preprocessing directive #DEFINE" alien C Programming 38 10-14-2009 04:04 PM
Preprocessing directive in the middle of macro arguments Francois Grieu C Programming 6 01-18-2008 11:16 AM
Problem with runtime compilation of aspx files. Register Directive ignores Assembly Dan ASP .Net 3 06-14-2004 06:13 AM
The 'Location' attribute is not supported by the 'OutPutCache' directive????when i set in the directive .NET Follower ASP .Net 1 02-13-2004 10:32 AM
compilation directive disabled Mark Olbert ASP .Net 4 11-25-2003 03:38 PM



Advertisments