Friday, March 2, 2012

__asm nop


퍼옴: http://cafe.naver.com/devctrl.cafe?iframe_url=/ArticleRead.nhn%3Farticleid=1700&

VC에서 아무일도 안하면서 break point를 걸고 싶을 때 간단히 다음 구문을 추가하면 된다.

__asm nop

예를 들어 다음과 같은 구문에서

if (some_condition)
{
    //  아직 만드는 중
    // '여기'에 들어오는지 확인하고 싶다.
}
else
{
    do_something();
}

' 여기'에
__asm nop를 적어주고 break point를 걸어주면 된다.

if (some_condition)
{
    //  아직 만드는 중
    __asm nop;
}
else
{
    do_something();
}

No comments:

Post a Comment