Re: Orx Wrapper Update
- Posted by Icy_Viking Aug 13, 2021
- 973 views
For anyone wondering how I got it to compile using CDECL, I only had to change one line of code. I compiled using Visual Studio 2017 x86 under Windows 7(64-bit). I should probably upgrade to Win 10 sometime so I can have access to the Linux Subsystem.
// C Code /* Windows */ #ifdef __orxWINDOWS__ #ifndef orxFASTCALL #define orxFASTCALL __cdecl //change this to __cdecl from __fastcall #endif /* !orxFASTCALL */ #define orxSTDCALL __stdcall #define orxCDECL __cdecl /** The function will be exported (dll compilation) */ #define orxDLLEXPORT __declspec(dllexport) /** The function will be imported (exe compilation) */ #define orxDLLIMPORT __declspec(dllimport) /** The null address */ #define orxNULL (0) /** Inline */ #ifndef orxINLINE /* *** Compiler specific *** */ #if defined(__orxGCC__) || defined(__orxLLVM__) /** The function intend to be inlined. */ #define orxINLINE inline #elif defined(__orxMSVC__) /** The function intend to be inlined. */ #define orxINLINE __inline #endif #endif /* !orxINLINE */ #else /* __orxWINDOWS__ */
This is a big project and will take sometime to get a Eu wrapper going. Stay tuned. There are many functions and flags for this.