提交 1b97c9be 编写于 作者: J Jonathan Chambers

Move variable declaration to beginning of scope.

上级 0bf9715a
......@@ -1761,13 +1761,13 @@ int mono_backtrace_from_context(void* context, void* array[], int count)
MonoContext mctx;
void* ip = 0;
void** bp = 0;
int idx = 0;
mono_arch_sigctx_to_monoctx(context, &mctx);
ip = (void*)MONO_CONTEXT_GET_IP(&mctx);
bp = (void**)MONO_CONTEXT_GET_BP(&mctx);
int idx = 0;
while(ip && bp)
{
array[idx++] = ip;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册