Conversation

#pragma twice

1
1
1
i dont know c and im probably making myself look silly
Show content

@CenTdemeern1
#ifndef MEOW
#define MEOW
#else
#pragma once
#endif

2
0
0
re: i dont know c and im probably making myself look silly
Show content
@kemona_halftau @CenTdemeern1 this is correct (as in it ensures that the header is included at most twice, not that that's something you'd ever want to do)
0
0
0
taken literally
Show content

@kemona_halftau @CenTdemeern1
a header guard is made like this, silly neocat_pat_floof

#ifndef MEOW
#define MEOW
// code
#endif

(or)

#pragma once
// code...

—⚠️⌛

1
0
1
taken literally
Show content

@thing @kemona_halftau did you read the thread

1
0
0
taken literally
Show content

@CenTdemeern1 @kemona_halftau yes i saw the #pragma twice but i just wanted to show what it’s supposed to be normally neobot_woozy
how about you pragma deez nuts

—⚠️⌛

0
0
1