__getcallerseflags
Specyficzne dla firmy Microsoft
Zwraca wartość EFLAGS z kontekstu obiektu wywołującego.
Składnia
unsigned int __getcallerseflags(void);
Wartość zwracana
Wartość EFLAGS z kontekstu obiektu wywołującego.
Wymagania
Nieodłączny | Architektura |
---|---|
__getcallerseflags |
x86, x64 |
Plik<nagłówka intrin.h>
Uwagi
Ta rutyna jest dostępna tylko jako wewnętrzna.
Przykład
// getcallerseflags.cpp
// processor: x86, x64
#include <stdio.h>
#include <intrin.h>
#pragma intrinsic(__getcallerseflags)
unsigned int g()
{
unsigned int EFLAGS = __getcallerseflags();
printf_s("EFLAGS 0x%x\n", EFLAGS);
return EFLAGS;
}
unsigned int f()
{
return g();
}
int main()
{
unsigned int i;
i = f();
i = g();
return 0;
}
EFLAGS 0x202
EFLAGS 0x206
END Microsoft Specific