#Help with pragma and #define

1 messages · Page 1 of 1 (latest)

steady vault
#

I dont quite understand both if these so can anyone explain what are they and what they do

prime steppeBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.

honest valley
#

pragma once makes it so that

compiler won't open and read the file again after the first #include of the file in the translation unit

#

Look up examples of it being used and it could help you learn it

ornate loom
#

Define is simply a macro directive meaning whatever you define will be substituted into wherever in your source code you declare that definition. All before compilation

steady vault
#

So its kinda like a func?

ornate loom
steady vault
#

Oh alr thx

#

!solved