January 03, 2018 Genel » attribute ((stdcall)) Hata Veriyor. | |||
|---|---|---|---|
| |||
...struct Example ExampleHandle;
# define EXPORTCALL
#endif
#ifdef __cplusplus
extern "C"
{
#endif
ExampleHandle EXPORTCALL init_Example... | |||
December 06, 2017 Learn » Re: Does dmd not always compile all of the source code? | |||
|---|---|---|---|
| |||
...ifdef _WIN32
int i = 0;
#else
ohnoes
#endif
As noted by others, C++ templates work... | |||
November 12, 2017 Learn » Inline assembly question | |||
|---|---|---|---|
| |||
...rsi |.define CARG3, rdx |.define CARG4, rcx |.endif With above in place, the code can... | |||
November 10, 2017 GDC » [Bug 109] Error compiling 4.8.2 on Cygwin | |||
|---|---|---|---|
| |||
...WIN32
char sep = '\\';
#elif POSIX
char sep = '/';
#endif
if (path[strlen(path) - 1] != sep)
---
So... | |||
September 01, 2017 Issues » [Issue 17666] std.c.linux.socket has no replacement | |||
|---|---|---|---|
| |||
...file, it looks like I missed an #endif when reading it and thought that that... | |||
August 28, 2017 Learn » C callbacks getting a value of 0! Bug in D? | |||
|---|---|---|---|
| |||
...LOGAPI(("\tvoid *userData: 0x%p\n", userData ));
#endif
and this is how I define it... | |||
August 07, 2017 Issues » [Issue 17726] Older DMD versions segfault when building Druntime with GCC 7.1 | |||
|---|---|---|---|
| |||
...else
numbytes = (numbytes + 3) & ~3; /* dword align */
#endif
Looks like the same restrictions which apply... | |||
August 03, 2017 General » How do I do this? | |||
|---|---|---|---|
| |||
...REAL_LOG_LIBRARY #else // Declarations go here #endif I can now inject from my build... | |||
July 01, 2017 Learn » Re: D and .lib files. C++/Other? | |||
|---|---|---|---|
| |||
...declspec(dllexport) #else #define DllAPI __declspec(dllimport) #endif DllAPI void ConsoleWrite(); DllAPI void ConsoleWait(); _______________________________________________________________ The... | |||
June 25, 2017 Learn » Zero-cost version-dependent function call at -O0. | |||
|---|---|---|---|
| |||
...if X
void foo() {......}
#else
#define foo()
#endif
```
How would you do this in D... | |||
Copyright © 1999-2021 by the D Language Foundation