__getcallerseflags
[このドキュメントはプレビュー版であり、後のリリースで変更されることがあります。 Blank topics are included as placeholders.]
Microsoft 固有の仕様 →
呼び出し元のコンテキストから EFLAGS の値を返します。
unsigned int __getcallerseflags(void);
戻り値
呼び出し元のコンテキストから EFLAGS の値。
必要条件
組み込み |
アーキテクチャ |
---|---|
__getcallerseflags |
x86x64 |
ヘッダー ファイル <intrin.h>
解説
このルーチンは組み込みとしてのみ使用できます。
使用例
// 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;
}