#Help with pragma and #define
1 messages · Page 1 of 1 (latest)
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.
https://en.cppreference.com/w/cpp/preprocessor/replace.html
https://en.cppreference.com/w/cpp/preprocessor/impl
are you talking about pragma once vs header guards?
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
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
So its kinda like a func?
you can define macros that REPRESENT functions yes but they themselves are not functions think of it sort of like a search and replace tool