2 * PROJECT: ReactOS c++ runtime library
3 * LICENSE: GPLv2+ - See COPYING in the top level directory
4 * PURPOSE: Exception-handling vector ctor/dtor iterator implementation
5 * PROGRAMMER: Thomas Faber (thomas.faber@reactos.org)
10 void __stdcall
MSVCRTEX_eh_vector_constructor_iterator(void *pMem
, size_t sizeOfItem
, int nItems
, void (__thiscall
*ctor
)(void *), void (__thiscall
*dtor
)(void *))
12 char *pEnd
= static_cast<char *>(pMem
) + nItems
* sizeOfItem
;
13 for (char *pItem
= static_cast<char *>(pMem
);
23 for (pItem
-= sizeOfItem
; pItem
>= pMem
; pItem
-= sizeOfItem
)
30 void __stdcall
MSVCRTEX_eh_vector_destructor_iterator(void *pMem
, size_t sizeOfItem
, int nItems
, void (__thiscall
*dtor
)(void *))
32 char *pEnd
= static_cast<char *>(pMem
) + nItems
* sizeOfItem
;
33 for (char *pItem
= pEnd
- sizeOfItem
;
43 for (pItem
-= sizeOfItem
; pItem
>= pMem
; pItem
-= sizeOfItem
)