Changeset 455 in dev for trunk/ab5.0/abdev/BasicCompiler_Common/error.cpp
- Timestamp:
- Mar 22, 2008, 9:47:59 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/BasicCompiler_Common/error.cpp
r448 r455 1 1 #include "stdafx.h" 2 3 #include <iostream> 2 4 3 5 #include <Program.h> … … 377 379 SendDlgItemMessage(hMainDlg,IDC_ERRORLIST,EM_REPLACESEL,0,(LPARAM)temp2); 378 380 379 381 std::string msg = temp2; 380 382 if(num==-2){ 381 383 //コンパイルメッセージ … … 385 387 } 386 388 else{ 389 msg = (num>-100) ? "error - " : "warning - "; 390 msg += temp2; 387 391 if(num>-100){ 388 392 //警告ではなく、エラーの場合はエラーチェックフラグを立てる 389 393 extern BOOL bError; 390 394 bError=1; 391 392 // ログに出力393 trace( "error - " << temp2 );394 395 } 395 396 else{ 396 397 extern int WarningNum; 397 398 WarningNum++; 398 399 // ログに出力 400 trace( "warning - " << temp2 ); 401 } 402 } 399 } 400 401 // ログに出力 402 trace( msg ); 403 } 404 405 std::cout << msg << endl; 406 403 407 404 408 ErrorNum++;
Note:
See TracChangeset
for help on using the changeset viewer.