本文整理匯總了C++中CHECKOFLOW函數的典型用法代碼示例。如果您正苦於以下問題:C++ CHECKOFLOW函數的具體用法?C++ CHECKOFLOW怎麽用?C++ CHECKOFLOW使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了CHECKOFLOW函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C++代碼示例。
示例1: prim_event_count
void
prim_event_count(PRIM_PROTOTYPE)
{
CHECKOP(0);
CHECKOFLOW(1);
result = muf_event_count(fr);
PushInt(result);
}
示例2: prim_over
void
prim_over(PRIM_PROTOTYPE)
{
CHECKOP_READONLY(2);
CHECKOFLOW(1);
copyinst(&arg[*top - 2], &arg[*top]);
(*top)++;
}
示例3: prim_mode
void
prim_mode(PRIM_PROTOTYPE)
{
CHECKOP(0);
result = fr->multitask;
CHECKOFLOW(1);
PushInt(result);
}
示例4: prim_epsilon
void
prim_epsilon(PRIM_PROTOTYPE)
{
CHECKOP(0);
fresult = DBL_EPSILON;
CHECKOFLOW(1);
PushFloat(fresult);
}
示例5: prim_caller
void
prim_caller(PRIM_PROTOTYPE)
{
CHECKOP(0);
ref = (dbref) fr->caller.st[fr->caller.top - 1];
CHECKOFLOW(1);
PushObject(ref);
}
示例6: prim_pid
void
prim_pid(PRIM_PROTOTYPE)
{
CHECKOP(0);
CHECKOFLOW(1);
result = fr->pid;
PushInt(result);
}
示例7: prim_over
void
prim_over(PRIM_PROTOTYPE)
{
EXPECT_READ_STACK(2);
CHECKOFLOW(1);
copyinst(&arg[*top - 2], &arg[*top]);
(*top)++;
}
示例8: prim_error_num
void
prim_error_num(PRIM_PROTOTYPE)
{
CHECKOP(0);
CHECKOFLOW(1);
result = ERROR_NUM;
PushInt(result);
}
示例9: prim_gmtoffset
void
prim_gmtoffset(PRIM_PROTOTYPE)
{
CHECKOP(0);
CHECKOFLOW(1);
result = get_tz_offset();
PushInt(result);
}
示例10: prim_pi
void
prim_pi(PRIM_PROTOTYPE)
{
CHECKOP(0);
fresult = F_PI;
CHECKOFLOW(1);
PushFloat(fresult);
}
示例11: prim_is_error
void
prim_is_error(PRIM_PROTOTYPE)
{
CHECKOP(0);
CHECKOFLOW(1);
result = ((fr->error.is_flags) != 0);
PushInt(result);
}
示例12: prim_systime
void
prim_systime(PRIM_PROTOTYPE)
{
CHECKOP(0);
result = time(NULL);
CHECKOFLOW(1);
PushInt(result);
}
示例13: prim_deep_copy
void
prim_deep_copy(PRIM_PROTOTYPE)
{
EXPECT_READ_STACK(1);
CHECKOFLOW(1);
deep_copyinst(&arg[*top - 1], &arg[*top], fr->pinning);
(*top)++;
}
示例14: prim_frand
void
prim_frand(PRIM_PROTOTYPE)
{
CHECKOP(0);
CHECKOFLOW(1);
fresult = _int_f_rand();
PushFloat( fresult );
}
示例15: prim_inf
void
prim_inf(PRIM_PROTOTYPE)
{
CHECKOP(0);
fresult = INF;
CHECKOFLOW(1);
PushFloat(fresult);
}