Changeset 3051
- Timestamp:
- 19/01/2012 18:18:16 (4 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
box/invisnet/vs2010/0.11/lib/common/makeexception.pl.in
r2801 r3051 3 3 # global exception list file 4 4 my $global_list = '../../ExceptionCodes.txt'; 5 my $event_messages = '../win32/messages.mc'; 5 6 6 7 … … 51 52 open CPP,">autogen_${class}Exception.cpp" or die "Can't open cpp file for writing"; 52 53 open H,">autogen_${class}Exception.h" or die "Can't open h file for writing"; 54 open MC,">autogen_${class}Exception.mc" or die "Can't open mc file for writing"; 53 55 54 56 # write header file … … 206 208 __E 207 209 210 for(my $e = 0; $e <= $#exception; $e++) 211 { 212 if($exception[$e] ne '') 213 { 214 printf MC "MessageId=0x%02X%02X\n",$class_number,$e; 215 print MC "Severity=Warning\n"; 216 print MC "SymbolicName=MSG_${exception[$e]}\n"; 217 if($exception_desc[$e] ne '') 218 { 219 print MC $exception_desc[$e]."\n"; 220 } 221 print MC "%1\n.\n"; 222 } 223 } 224 208 225 close H; 209 226 close CPP; 227 close MC; 210 228 211 229 # update the global exception list … … 282 300 283 301 close GLOBAL; 284 285
Note: See TracChangeset
for help on using the changeset viewer.
