LPC

net testeff inh/copy/copy_status
net set_party_time 2011-5-7 20:00:00   //設置系統時間
net set_party_time restore  //設置系統時間
net set_party_time //查看當前系統時間

net call me->set_save_2("nCopyNoPass",1)

神寵裝: 30218

 

過程
// 參數爲,打印的深度
void PrintStack( int d)
{
 mixed * mxFileList = call_stack(0);
 mixed * mxFuncList = call_stack(2);
#ifdef __PRINT_CALL_OBJ__
 mixed * mxObjList = call_stack(1);
#endif
 int i, size;
 string msg;
 
// Assert( sizeof( mxFuncList) == sizeof(mxFileList));
 size = sizeof( mxFuncList);
 if( d <= 0 || d>= size) d = size-1;
 d += 1;
 
 msg = "stack print/n";
 
 for( i = d-1; i>0; --i)
 {
  msg += sprintf("%d : %s",i, mxFileList[i]);
#ifdef __PRINT_CALL_OBJ__
  msg += sprintf("#%x",clonep(mxObjList[i])?getoid(mxObjList[i]):0);
#endif
  msg += sprintf(" -> %s/n", mxFuncList[i]);
  //msg += sprintf("%d : %s -> %s/n", i, mxFileList[i], mxFuncList[i]);
 }
 log_file("PrintStack.txt",msg);
// _DEBUG(msg);
}
 
 
 

發佈了13 篇原創文章 · 獲贊 0 · 訪問量 1萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章