MᏫᎻᎯᎷᎷᎬᎠ
That is a completely different thing
Anonymous
Okey
Anonymous
And one more thing
Anonymous
What is #pragma once What this directive will do
Anonymous
??
BinaryByter
you know
BinaryByter
if you include a file twice
BinaryByter
the compiler might have problems
BinaryByter
so with #pragma once
BinaryByter
the compiler will make sure not to include the file twice
Anonymous
Means I know about #pragma startup and #pragma exit #pragma GCC poison also..
BinaryByter
BinaryByter
they are NOT part of the C++ language
Anonymous
But why we will use #pragma GCC poison
Anonymous
??
BinaryByter
But why we will use #pragma GCC poison
its a way of making sure that your function won't be used
BinaryByter
like lets say that you have a function
Anonymous
Means if I write #pragma GCC poison printf
BinaryByter
that is a subfunction
Anonymous
It blocked printf
BinaryByter
but that CANNOT be used without the upper scope function
Anonymous
In my prog
BinaryByter
BinaryByter
thats what its supposed to do
Anonymous
Okey.. Can I ask you some more doubts..?
Anonymous
Please
MᏫᎻᎯᎷᎷᎬᎠ
BinaryByter
Meeeh Include guard can do that
you should prefer them over #pragma
Anonymous
#ifndef. Why we specify this
Anonymous
??
BinaryByter
#ifndef. Why we specify this
this is an if statement
MᏫᎻᎯᎷᎷᎬᎠ
you should prefer them over #pragma
Yeah But I think pragma is not supported by all compilers or standardised
BinaryByter
but it checks wether a symbol is defined
BinaryByter
(almost) everything that is #pragma is not in the standard
Anonymous
But most compilers accept it
BinaryByter
But most compilers accept it
i don't know a compiler that doesn't
Anonymous
Yeah But I think pragma is not supported by all compilers or standardised
GCC also support now some pragma. But orefix with GCC
MᏫᎻᎯᎷᎷᎬᎠ
exactly
That's Why For code portability purposes Include guards are better
MᏫᎻᎯᎷᎷᎬᎠ
BinaryByter
thats going to be some epic shit
MᏫᎻᎯᎷᎷᎬᎠ
thats going to be some epic shit
C++ in its way to complete all HLL advantages
Anonymous
HLL?
I was going to ask the same
Anonymous
What the meaning of this statement👇👇 #ifndef TEXT_DIALOG #define TEXT_DIALOG
BinaryByter
if it is not defined, it will define TEXT_DIALOG
MᏫᎻᎯᎷᎷᎬᎠ
HLL?
High Level Language Yeah I taught Maxi sth :D
BinaryByter
High Level Language Yeah I taught Maxi sth :D
yea, make up abbreviations, wait until i ask and feel good about teaching me something ;)
BinaryByter
HLL exists?
BinaryByter
xD
MᏫᎻᎯᎷᎷᎬᎠ
Yeah
Anonymous
That is the ambiguity bro.. Uf developer already know that TEXT_DUALIG has to define..then why he didn't do it before.. ??
BinaryByter
#ifndef TEXT_DIALOG #define TEXT_DIALOG
BinaryByter
this is the same as #pragma once
BinaryByter
the first time that the file is included, TEXT_DIALOG isn't defined
BinaryByter
but the second time, it is already defined
BinaryByter
so the compiler won't include the code
Anonymous
Oh..okey Bro.i get your point..
MᏫᎻᎯᎷᎷᎬᎠ
#ifndef TEXT_DIALOG #define TEXT_DIALOG
In case we assumed it's an include guard
Anonymous
U people are just awesome in c++
Anonymous
And v
Anonymous
C
MᏫᎻᎯᎷᎷᎬᎠ
MᏫᎻᎯᎷᎷᎬᎠ
Not me
BinaryByter
Not me
you are getting there :D
MᏫᎻᎯᎷᎷᎬᎠ
I'm very very waaaay suuccks
MᏫᎻᎯᎷᎷᎬᎠ
MᏫᎻᎯᎷᎷᎬᎠ
I hope we helped you
Anonymous
@BOND_0O7 and @linuxer4fun Do you people have your GitHub repo..?
BinaryByter
mine is