October 22, 2019 General » Re: DMD release compiler flags when building with LDC | |||
|---|---|---|---|
| |||
...on DMD itself, from DMD's src/posix.mak: ifdef ENABLE_LTO CXXFLAGS += -flto endif | |||
October 03, 2019 General » Re: [SAoC] MLIR Support for LDC | |||
|---|---|---|---|
| |||
...do something like this in CMake and #ifdef code that cannot be compiled without MLIR... | |||
September 05, 2019 General » Re: [GSoC] Header Generation for C/C++ | |||
|---|---|---|---|
| |||
...so I ended up with the entire `#ifdef` tree above. I could generate `alignas(n... | |||
August 07, 2019 General » Re: OT: C# now has ref and const ref return | |||
|---|---|---|---|
| |||
...see as Terra interoperate with Lua
}
}
codeCpp {
#ifdef SOME_MACRO
// classes in C++ is same... | |||
August 02, 2019 General » Re: [GSoC] Header Generation for C/C++ | |||
|---|---|---|---|
| |||
...the same behavior. So you should be able to dispense with the #ifdef's completely. | |||
July 17, 2019 General » Re: [GSoC] Header Generation for C/C++ | |||
|---|---|---|---|
| |||
...could simplify to:
#ifdef __cplusplus
extern "C" {
#endif
// C declarations
void cFunc();
...
#ifdef __cplusplus
}
#endif | |||
July 17, 2019 General » Re: [GSoC] Header Generation for C/C++ | |||
|---|---|---|---|
| |||
...ifdef __cplusplus` block, and prefixing any `extern (C)` definitions with the following `EXTERNC` macro ``` #ifdef... | |||
June 01, 2019 Learn » Re: 'version'-based code selection | |||
|---|---|---|---|
| |||
...from DMD. It is not supported. Think #ifdef and you should get a basic understanding... | |||
February 20, 2019 General » From C to D: issue with arguments for core.stdc.string.memcpy | |||
|---|---|---|---|
| |||
...STACK_CAPACITY (sizeof(rs_heap) - 1)
#endif
#ifdef RS_STACK_CAPACITY
#define RS_ALIGNMENT \
(sizeof... | |||
February 01, 2019 Learn » Re: Purpose of template DECLARE_HANDLE in druntime | |||
|---|---|---|---|
| |||
...handle, in C it's declared as #ifdef STRICT typedef void *HANDLE; #if 0 && (_MSC... | |||
Copyright © 1999-2021 by the D Language Foundation