mirror of
https://github.com/reactos/reactos.git
synced 2024-09-04 01:29:31 +00:00
![Amine Khaldi](/assets/img/avatar_default.png)
* Create a branch for some evul shell experiments. svn path=/branches/shell-experiments/; revision=61927
14 lines
367 B
C
14 lines
367 B
C
|
|
#define DEFINE_THISCALL_WRAPPER(func,args) \
|
|
typedef struct {int x[args/4];} _tag_##func; \
|
|
void __stdcall func(_tag_##func p1); \
|
|
__declspec(naked) void __stdcall func(_tag_##func p1) \
|
|
{ \
|
|
__asm pop eax \
|
|
__asm push ecx \
|
|
__asm push eax \
|
|
__asm jmp func \
|
|
}
|
|
|
|
DEFINE_THISCALL_WRAPPER(Allocate_PMemoryAllocator,8)
|