extern "C" void* __wrap_memalign(size_t Alignment, size_t Size)
{
extern void* __real_memalign(size_t,size_t);
return __real_memalign(Size, Alignment);
}
(Thanks Graham Wihlidal)
Epic failures in the game development field.
This blog covers funny/weird issues and bugs from games that happened during development.
Send your own contributions to igetyourfail at repi.se (can be anonymous if specified)
extern "C" void* __wrap_memalign(size_t Alignment, size_t Size)
{
extern void* __real_memalign(size_t,size_t);
return __real_memalign(Size, Alignment);
}
2 comments:
I don't get it...
The only functionality of this wrapper is using the parameters in the wrong order.
Post a Comment