May 24, 2016 Genel » C/C++: #ifndef mı #if !defined() mı? | |||
|---|---|---|---|
| |||
Ben de aynısını duymuştum. Hiçbir farkları yok. İkisi de doğru. Ali -- [ Bu gönderi, <http://ddili... | |||
May 24, 2016 Genel » C/C++: #ifndef mı #if !defined() mı? | |||
|---|---|---|---|
| |||
...C++'da #ifndef ve #if !defined() olarak iki tane önişlemci direktifi var. Kitapta #ifndef önişlemeci... | |||
May 16, 2016 Learn » Re: Request assistance converting C's #ifndef to D | |||
|---|---|---|---|
| |||
One option here is that the programmer is trying to avoid multiple definitions of MIN... | |||
May 14, 2016 Learn » Re: Request assistance converting C's #ifndef to D | |||
|---|---|---|---|
| |||
This may be the case, but since I am not yet at a level of... | |||
May 13, 2016 Learn » Re: Request assistance converting C's #ifndef to D | |||
|---|---|---|---|
| |||
...is compile the C code without the #ifndef's and see if it compiles without... | |||
May 13, 2016 Learn » Re: Request assistance converting C's #ifndef to D | |||
|---|---|---|---|
| |||
If you're ok with runtime values int MIN=99, MAX=999; And let user... | |||
May 13, 2016 Learn » Re: Request assistance converting C's #ifndef to D | |||
|---|---|---|---|
| |||
Code like this is FUBAR. I have seen abuse of pre-processor in many places... | |||
May 13, 2016 Learn » Re: Request assistance converting C's #ifndef to D | |||
|---|---|---|---|
| |||
Not sure what I was doing wrong earlier. Works perfectly fine now. Glad I asked... | |||
May 13, 2016 Learn » Re: Request assistance converting C's #ifndef to D | |||
|---|---|---|---|
| |||
`static if` and `version()` can be nested, and both work just fine inside classes, structs... | |||
May 13, 2016 Learn » Re: Request assistance converting C's #ifndef to D | |||
|---|---|---|---|
| |||
Additionally, what's the best way to handle nested #ifdef's? Those that appear inside... | |||
Copyright © 1999-2021 by the D Language Foundation