Search

January 03, 2018
Genel »
...struct Example ExampleHandle;
# define EXPORTCALL
#endif

#ifdef __cplusplus
extern "C"
{
#endif

ExampleHandle EXPORTCALL init_Example...
December 06, 2017
Learn »
...ifdef _WIN32
    int i = 0;
#else
    ohnoes
#endif

As noted by others, C++ templates work...
November 12, 2017
Learn »
...rsi
|.define CARG3,		rdx
|.define CARG4,		rcx
|.endif

With above in place, the code can...
November 10, 2017
GDC »
...WIN32
            char sep = '\\';
#elif POSIX
            char sep = '/';
#endif
            if (path[strlen(path) - 1] != sep)
---

So...
September 01, 2017
Issues »
...file, it looks like I missed an #endif when reading it and thought that that...
August 28, 2017
Learn »
...LOGAPI(("\tvoid *userData: 0x%p\n", userData ));
#endif


and this is how I define it...
August 07, 2017
Issues »
...else
        numbytes = (numbytes + 3) & ~3;         /* dword align  */
#endif

Looks like the same restrictions which apply...
August 03, 2017
General »
...REAL_LOG_LIBRARY
#else

// Declarations go here

#endif


I can now inject from my build...
July 01, 2017
Learn »
...declspec(dllexport)
#else
	#define DllAPI __declspec(dllimport)
#endif

DllAPI void ConsoleWrite();
DllAPI void ConsoleWait();
_______________________________________________________________

The...
June 25, 2017
Learn »
...if X
  void foo() {......}
#else
  #define foo()
#endif
```

How would you do this in D...
1 2 3 4 5 6 7 8 9 10
Next ›   Last »