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)

Tuesday, April 30, 2013

Epic alignment fail...

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)

2 comments:

Pedro Luchini said...

I don't get it...

Lustiger Hans said...

The only functionality of this wrapper is using the parameters in the wrong order.

Followers