Code:
/* * Some compilers don't have va_copy predefined. * This redefinition may work as a substitute on some of them. */ #ifndef va_copy #define va_copy(ap1, ap2) ((ap1) = (ap2)) #endif
Some quick testing (acquiring random items - including artefacts - and identifying them) hasn't crashed it yet, so it might be a potential workaround for MSVC compilers - but I'm not qualified to judge for certain.
Leave a comment: