April 20, 2021 Learn » Re: Dlang equivalent of #define/#ifdef : not... version | |||
|---|---|---|---|
| |||
Could it be because __MODULE__ is string, requiring mixin? The following prints 'true': enum i... | |||
April 20, 2021 Learn » Re: Dlang equivalent of #define/#ifdef : not... version | |||
|---|---|---|---|
| |||
mw covered this. There's more documentation here: https://dlang.org/spec/version.html#version... | |||
April 20, 2021 Learn » Re: Dlang equivalent of #define/#ifdef : not... version | |||
|---|---|---|---|
| |||
On Tuesday, 20 April 2021 at 18:57:46 UTC, ichneumwn wrote: https://dub.pm... | |||
April 20, 2021 Learn » Dlang equivalent of #define/#ifdef : not... version | |||
|---|---|---|---|
| |||
...the header provides the relevant definitions, through #ifdef, and do a further run-time check... | |||
December 29, 2020 Learn » Re: C++ interop, abstract struct problem | |||
|---|---|---|---|
| |||
...delete; ~Mutex(); void enter(); void exit(); private: #ifdef _WIN32 u8 data[8]; #else pthread_mutex... | |||
June 04, 2020 General » Re: Counting bits in a ulong | |||
|---|---|---|---|
| |||
...DEFINE_INLINE int PopCountFewClr(uint64_t w)
{
#ifdef __POPCNT__
return __builtin_popcountll(w);
#else
return... | |||
March 21, 2020 Learn » Re: OR in version conditional compilation | |||
|---|---|---|---|
| |||
...If you modify code not in an ifdef you can still cause bugs that only... | |||
March 20, 2020 Learn » Re: OR in version conditional compilation | |||
|---|---|---|---|
| |||
...on the other platforms sharing the same #ifdef block, and while you should be testing... | |||
December 10, 2019 Learn » Re: How add "version.txt" Version File by Command Line or by resources.res using dmd.exe | |||
|---|---|---|---|
| |||
...PRODUCTVERSION 2,0,0,1 FILEFLAGSMASK 0x3fL #ifdef _DEBUG FILEFLAGS 0x1L #else FILEFLAGS 0x0L #endif... | |||
October 23, 2019 General » Re: DMD release compiler flags when building with LDC | |||
|---|---|---|---|
| |||
So, I presume we could set ifdef ENABLE_LTO DFLAGS += -flto=full endif in the... | |||
Copyright © 1999-2021 by the D Language Foundation