[C++ Tutorial #23] Macros - GameDev Prep Course

120 Просмотры
Издатель
Let's not get confused by define, ifdef, ifndef, else, or endif.
"A macro is a fragment of code which has been given a name. Whenever the name is used, it is replaced by the contents of the macro."
https://gcc.gnu.org/onlinedocs/cpp/Macros.html

Tutorial Playlist:
https://youtube.com/playlist?list=PLWYGofN_jX5Apmb8pJUD8NN3KskHW2lcy

Repository:
https://github.com/RoundBearChoi/CPP_Tutorial_Projects

Any questions/comments? Join us on discord:
https://discord.gg/hAFTgcA

#define: (0:00)
#ifdef: (1:25)
#ifndef: (2:37)
outro: (4:08)

Social
twitter: https://twitter.com/roundbeargames
facebook: https://facebook.com/roundbeargames17
hive: https://peakd.com/@roundbeargames/posts
reddit: https://reddit.com/user/roundbeargames
linkedin: https://linkedin.com/in/jangwon-choi-15041a9a

Patreon:
https://patreon.com/roundbeargames

Channel Memberships:
https://youtube.com/roundbeargames/join

#gamedev
Категория
Язык программирования C++
Комментариев нет.