Skip to main content
gamedev.net
🔒 Locked

program once??

Started by renqilin Dec 6, 2002 at 4:15 AM 1 replies 600+ views
Original Post
renqilin
renqilin
can somebody explain the meaning of #program once and #program comment?? Thanks.
Fruny
Fruny
#pragmas are compiler-specific directives.

#pragma once - The file will only be processed once regardless how many times it is #included in a given translation unit.

#pragma comment - Use to inject a comment in the compiled file. Follow the link for specific uses.

Note - Read your compiler''s help files.

Documents [ GDNet | MSDN | STL | OpenGL | Formats | RTFM | Asking Smart Questions ]
C++ Stuff [ MinGW | Loki | SDL | Boost. | STLport | FLTK | ACCU Recommended Books ]
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan
renqilin
renqilin
Thanks,Fruny. and your signature is very useful.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.