Equivalent to nullptr

Leonardo via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue May 16 20:14:05 PDT 2017


On Thursday, 4 May 2017 at 04:34:40 UTC, Stanislav Blinov wrote:
> In the meantime, you can get around the issue by redeclaring 
> the function with another name and loading it manually just 
> after calling DerelictSDL2.load():
>
>>import derelict.sdl2.sdl;
>>
>>__gshared SDL_bool function (const(SDL_Point)*, int, 
>>const(SDL_Rect)*, SDL_Rect*) SDL_EnclosePoints_;
>>
>>void main()
>>{
>>    DerelictSDL2.load();
>>    DerelictSDL2.bindFunc(cast(void**)&SDL_EnclosePoints_, 
>> "SDL_EnclosePoints");
>>    // ...
>>}
>
> Now you'd need to call SDL_EnclosePoints_ instead of 
> SDL_EnclosePoints.

Thank you.


More information about the Digitalmars-d-learn mailing list