Change font size
It is currently Sat Nov 28, 2009 3:08 pm

Welcome
Welcome to Computer Programming Forum
We have a tool bar that you can download at http://comprog98.ourtoolbar.com/
Free Domain Name Service
You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. Registration is fast, simple, and absolutely free, so please, join our community today!
Here's where the people who come to are site are from:Image
Affiliate links: http://www.dreamincode.net/
Prediction Market

DaniWeb IT Discussion Community




Post a new topicPost a reply Page 1 of 1   [ 7 posts ]
Author Message
 Post subject: #pragma
PostPosted: Mon Mar 03, 2008 5:04 pm 
Site Admin

Joined: Fri Feb 29, 2008 5:38 pm
Posts: 647
Highscores: 11
What does the pragma preprocessor deritive do exactly?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 14, 2008 8:31 am 
Average

Joined: Fri Mar 14, 2008 8:12 am
Posts: 435
your answers

http://www.ccr.jussieu.fr/ccr/Documenta ... pradir.htm

A pragma is an implementation-defined instruction to the compiler, it has a general form:
__________________
| |
>>--#--pragma--v--character sequence--^-->< (hope that turns out right)

where character_sequence is a series of characters giving a specific compiler instruction and arguments, if any.

The character_sequence on a pragma is not subject to macro substitutions. More than one pragma construct can be specified on a single #pragma directive. The compiler ignores unrecognized pragmas.

Some #pragma directives must appear before any statements in the C source code. The other #pragma directives can be used throughout your program to affect a selected block of source code.

The C for AIX compiler lets you specify many compiler options as either command line options or as #pragma statements


(#pragma does nothing with C language, it is a compiler directive. Its uses are for changing the compiler settings for a particular part of code. For instance if you want to add some inline assembly code to a C routine, you would use #pragma ASM.)


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 14, 2008 8:31 am 
Average

Joined: Fri Mar 14, 2008 8:12 am
Posts: 435
my art didn't come out right :\


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 14, 2008 10:24 am 
Site Admin

Joined: Fri Feb 29, 2008 5:38 pm
Posts: 647
Highscores: 11
That makes sense. I was using it to set certain functions as interrupt routines.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 15, 2008 3:57 pm 
Average

Joined: Fri Mar 14, 2008 8:12 am
Posts: 435
I KNEW SOMETHING \(^_^)/

_________________
"ease the trigger" does that work for games too?


:twisted:


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 07, 2008 10:39 am 
Site Admin

Joined: Fri Feb 29, 2008 5:38 pm
Posts: 647
Highscores: 11
wow













































jk lol


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 14, 2008 8:27 am 
Average

Joined: Fri Mar 14, 2008 8:12 am
Posts: 435
I HATE YOU!!! D:<

_________________
"ease the trigger" does that work for games too?


:twisted:


Top
 Profile  
 
Display posts from previous:  Sort by  
Post a new topicPost a reply Page 1 of 1   [ 7 posts ]


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron