本文整理汇总了C++中PrintCallStack函数的典型用法代码示例。如果您正苦于以下问题:C++ PrintCallStack函数的具体用法?C++ PrintCallStack怎么用?C++ PrintCallStack使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了PrintCallStack函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: PrintContext
void CDebugger::DumpCrash(DWORD dwThreadId, DWORD dwProcessId, DWORD_PTR dwAddress) {
PrintContext(dwThreadId);
PrintDisAsm(dwProcessId, dwAddress);
PrintCallStack(dwThreadId, dwProcessId);
m_pCrash->Send();
m_pCrash->PrintLog();
}
示例2: PrintRuntimeError
SQInteger PrintRuntimeError(HSQUIRRELVM v)
{
SQPRINTFUNCTION pf = sq_geterrorfunc(v);
if(pf) {
const SQChar *sErr = 0;
if(sq_gettop(v)>=1) {
if(SQ_SUCCEEDED(sq_getstring(v,2,&sErr))) {
pf(v,_SC("\nAN ERROR HAS OCCURED [%s]\n"),sErr);
}
else{
pf(v,_SC("\nAN ERROR HAS OCCURED [unknown]\n"));
}
PrintCallStack(v);
}
}
return 0;
}
示例3: PrintObjectInfo
// オブジェクト情報の表示
void PrintObjectInfo(TRACKING_OBJECT *o)
{
SYSTEMTIME t;
char tmp[MAX_SIZE];
// 引数チェック
if (o == NULL)
{
return;
}
UINT64ToSystem(&t, o->CreatedDate);
GetDateTimeStrMilli(tmp, sizeof(tmp), &t);
Print(" TRACKING_OBJECT ID: %u\n"
" TRACKING_OBJECT TYPE: %s\n"
" ADDRESS: 0x%p\n"
" TRACKING_OBJECT SIZE: %u bytes\n"
" CREATED DATE: %s\n",
o->Id, o->Name, UINT64_TO_POINTER(o->Address), o->Size, tmp);
PrintCallStack(o->CallStack);
}
示例4: ScaleOp_ScaleOp_float_float_float
static QScriptValue ScaleOp_ScaleOp_float_float_float(QScriptContext *context, QScriptEngine *engine)
{
if (context->argumentCount() != 3) { printf("Error! Invalid number of arguments passed to function ScaleOp_ScaleOp_float_float_float in file %s, line %d!\nExpected 3, but got %d!\n", __FILE__, __LINE__, context->argumentCount()); PrintCallStack(context->backtrace()); return QScriptValue(); }
float sx = qscriptvalue_cast<float>(context->argument(0));
float sy = qscriptvalue_cast<float>(context->argument(1));
float sz = qscriptvalue_cast<float>(context->argument(2));
ScaleOp ret(sx, sy, sz);
return qScriptValueFromValue(engine, ret);
}
示例5: Capsule_ExtremePoint_float3_const
static QScriptValue Capsule_ExtremePoint_float3_const(QScriptContext *context, QScriptEngine *engine)
{
if (context->argumentCount() != 1) { printf("Error! Invalid number of arguments passed to function Capsule_ExtremePoint_float3_const in file %s, line %d!\nExpected 1, but got %d!\n", __FILE__, __LINE__, context->argumentCount()); PrintCallStack(context->backtrace()); return QScriptValue(); }
Capsule This = qscriptvalue_cast<Capsule>(context->thisObject());
float3 direction = qscriptvalue_cast<float3>(context->argument(0));
float3 ret = This.ExtremePoint(direction);
return qScriptValueFromValue(engine, ret);
}
示例6: LCG_Float_float_float
static QScriptValue LCG_Float_float_float(QScriptContext *context, QScriptEngine *engine)
{
if (context->argumentCount() != 2) { printf("Error! Invalid number of arguments passed to function LCG_Float_float_float in file %s, line %d!\nExpected 2, but got %d!\n", __FILE__, __LINE__, context->argumentCount()); PrintCallStack(context->backtrace()); return QScriptValue(); }
LCG This = qscriptvalue_cast<LCG>(context->thisObject());
float a = qscriptvalue_cast<float>(context->argument(0));
float b = qscriptvalue_cast<float>(context->argument(1));
float ret = This.Float(a, b);
ToExistingScriptValue_LCG(engine, This, context->thisObject());
return qScriptValueFromValue(engine, ret);
}
示例7: Transform_SetScale_float3
static QScriptValue Transform_SetScale_float3(QScriptContext *context, QScriptEngine *engine)
{
if (context->argumentCount() != 1) { printf("Error! Invalid number of arguments passed to function Transform_SetScale_float3 in file %s, line %d!\nExpected 1, but got %d!\n", __FILE__, __LINE__, context->argumentCount()); PrintCallStack(context->backtrace()); return QScriptValue(); }
Transform This = qscriptvalue_cast<Transform>(context->thisObject());
float3 s = qscriptvalue_cast<float3>(context->argument(0));
This.SetScale(s);
ToExistingScriptValue_Transform(engine, This, context->thisObject());
return QScriptValue();
}
示例8: Transform_Transform_float4x4
static QScriptValue Transform_Transform_float4x4(QScriptContext *context, QScriptEngine *engine)
{
if (context->argumentCount() != 1) { printf("Error! Invalid number of arguments passed to function Transform_Transform_float4x4 in file %s, line %d!\nExpected 1, but got %d!\n", __FILE__, __LINE__, context->argumentCount()); PrintCallStack(context->backtrace()); return QScriptValue(); }
float4x4 m = qscriptvalue_cast<float4x4>(context->argument(0));
Transform ret(m);
return qScriptValueFromValue(engine, ret);
}
示例9: Transform_ctor
static QScriptValue Transform_ctor(QScriptContext *context, QScriptEngine *engine)
{
if (context->argumentCount() == 0)
return Transform_Transform(context, engine);
if (context->argumentCount() == 3 && QSVIsOfType<float3>(context->argument(0)) && QSVIsOfType<float3>(context->argument(1)) && QSVIsOfType<float3>(context->argument(2)))
return Transform_Transform_float3_float3_float3(context, engine);
if (context->argumentCount() == 1 && QSVIsOfType<float3x3>(context->argument(0)))
return Transform_Transform_float3x3(context, engine);
if (context->argumentCount() == 1 && QSVIsOfType<float3x4>(context->argument(0)))
return Transform_Transform_float3x4(context, engine);
if (context->argumentCount() == 1 && QSVIsOfType<float4x4>(context->argument(0)))
return Transform_Transform_float4x4(context, engine);
printf("Transform_ctor failed to choose the right function to call! Did you use 'var x = Transform();' instead of 'var x = new Transform();'?\n"); PrintCallStack(context->backtrace()); return QScriptValue();
}
示例10: Transform_Transform_float3_float3_float3
static QScriptValue Transform_Transform_float3_float3_float3(QScriptContext *context, QScriptEngine *engine)
{
if (context->argumentCount() != 3) { printf("Error! Invalid number of arguments passed to function Transform_Transform_float3_float3_float3 in file %s, line %d!\nExpected 3, but got %d!\n", __FILE__, __LINE__, context->argumentCount()); PrintCallStack(context->backtrace()); return QScriptValue(); }
float3 pos_ = qscriptvalue_cast<float3>(context->argument(0));
float3 rot_ = qscriptvalue_cast<float3>(context->argument(1));
float3 scale = qscriptvalue_cast<float3>(context->argument(2));
Transform ret(pos_, rot_, scale);
return qScriptValueFromValue(engine, ret);
}
示例11: Capsule_SetFrom_Sphere
static QScriptValue Capsule_SetFrom_Sphere(QScriptContext *context, QScriptEngine *engine)
{
if (context->argumentCount() != 1) { printf("Error! Invalid number of arguments passed to function Capsule_SetFrom_Sphere in file %s, line %d!\nExpected 1, but got %d!\n", __FILE__, __LINE__, context->argumentCount()); PrintCallStack(context->backtrace()); return QScriptValue(); }
Capsule This = qscriptvalue_cast<Capsule>(context->thisObject());
Sphere s = qscriptvalue_cast<Sphere>(context->argument(0));
This.SetFrom(s);
ToExistingScriptValue_Capsule(engine, This, context->thisObject());
return QScriptValue();
}
示例12: Capsule_Transform_float4x4
static QScriptValue Capsule_Transform_float4x4(QScriptContext *context, QScriptEngine *engine)
{
if (context->argumentCount() != 1) { printf("Error! Invalid number of arguments passed to function Capsule_Transform_float4x4 in file %s, line %d!\nExpected 1, but got %d!\n", __FILE__, __LINE__, context->argumentCount()); PrintCallStack(context->backtrace()); return QScriptValue(); }
Capsule This = qscriptvalue_cast<Capsule>(context->thisObject());
float4x4 transform = qscriptvalue_cast<float4x4>(context->argument(0));
This.Transform(transform);
ToExistingScriptValue_Capsule(engine, This, context->thisObject());
return QScriptValue();
}
示例13: Capsule_Capsule_float3_float3_float
static QScriptValue Capsule_Capsule_float3_float3_float(QScriptContext *context, QScriptEngine *engine)
{
if (context->argumentCount() != 3) { printf("Error! Invalid number of arguments passed to function Capsule_Capsule_float3_float3_float in file %s, line %d!\nExpected 3, but got %d!\n", __FILE__, __LINE__, context->argumentCount()); PrintCallStack(context->backtrace()); return QScriptValue(); }
float3 bottomPoint = qscriptvalue_cast<float3>(context->argument(0));
float3 topPoint = qscriptvalue_cast<float3>(context->argument(1));
float radius = qscriptvalue_cast<float>(context->argument(2));
Capsule ret(bottomPoint, topPoint, radius);
return qScriptValueFromValue(engine, ret);
}
示例14: Capsule_Scale_float3_float
static QScriptValue Capsule_Scale_float3_float(QScriptContext *context, QScriptEngine *engine)
{
if (context->argumentCount() != 2) { printf("Error! Invalid number of arguments passed to function Capsule_Scale_float3_float in file %s, line %d!\nExpected 2, but got %d!\n", __FILE__, __LINE__, context->argumentCount()); PrintCallStack(context->backtrace()); return QScriptValue(); }
Capsule This = qscriptvalue_cast<Capsule>(context->thisObject());
float3 centerPoint = qscriptvalue_cast<float3>(context->argument(0));
float scaleFactor = qscriptvalue_cast<float>(context->argument(1));
This.Scale(centerPoint, scaleFactor);
ToExistingScriptValue_Capsule(engine, This, context->thisObject());
return QScriptValue();
}
示例15: Capsule_MinimalEnclosingOBB_const
static QScriptValue Capsule_MinimalEnclosingOBB_const(QScriptContext *context, QScriptEngine *engine)
{
if (context->argumentCount() != 0) { printf("Error! Invalid number of arguments passed to function Capsule_MinimalEnclosingOBB_const in file %s, line %d!\nExpected 0, but got %d!\n", __FILE__, __LINE__, context->argumentCount()); PrintCallStack(context->backtrace()); return QScriptValue(); }
Capsule This = qscriptvalue_cast<Capsule>(context->thisObject());
OBB ret = This.MinimalEnclosingOBB();
return qScriptValueFromValue(engine, ret);
}