Changeset 2195
- Timestamp:
- 05/11/07 13:57:11 (2 years ago)
- Files:
-
- trunk/lib/compiler/dmd/dmain2.d (modified) (2 diffs)
- trunk/lib/compiler/dmd/genobj.d (modified) (2 diffs)
- trunk/lib/compiler/gdc/dgccmain2.d (modified) (2 diffs)
- trunk/lib/compiler/gdc/genobj.d (modified) (2 diffs)
- trunk/object.di (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/compiler/dmd/dmain2.d
r2032 r2195 74 74 } 75 75 76 bool isHalting = false;77 78 extern (C) bool cr_isHalting()79 {80 return isHalting;81 }82 83 76 extern (C) bool cr_trapExceptions = true; 84 77 … … 159 152 _moduleUnitTests(); 160 153 result = main(args); 161 isHalting = true;162 154 _moduleDtor(); 163 155 gc_term(); trunk/lib/compiler/dmd/genobj.d
r2148 r2195 893 893 size_t line; 894 894 Exception next; 895 static bool halting; 895 896 896 897 this(char[] msg, Exception next = null) … … 1064 1065 { 1065 1066 debug(PRINTF) printf("_moduleDtor(): %d modules\n", _moduleinfo_dtors_i); 1067 Exception.halting = true; 1066 1068 for (uint i = _moduleinfo_dtors_i; i-- != 0;) 1067 1069 { trunk/lib/compiler/gdc/dgccmain2.d
r2032 r2195 72 72 } 73 73 74 bool isHalting = false;75 76 extern (C) bool cr_isHalting()77 {78 return isHalting;79 }80 81 74 extern (C) bool cr_trapExceptions = true; 82 75 … … 144 137 _moduleUnitTests(); 145 138 result = main_func(args); 146 isHalting = true;147 139 _moduleDtor(); 148 140 gc_term(); trunk/lib/compiler/gdc/genobj.d
r2148 r2195 907 907 size_t line; 908 908 Exception next; 909 static bool halting; 909 910 910 911 this(char[] msg, Exception next = null) … … 1085 1086 { 1086 1087 debug(PRINTF) printf("_moduleDtor(): %d modules\n", _moduleinfo_dtors_i); 1088 Exception.halting = true; 1087 1089 for (uint i = _moduleinfo_dtors_i; i-- != 0;) 1088 1090 { trunk/object.di
r2148 r2195 168 168 size_t line; 169 169 Exception next; 170 static bool halting; 170 171 171 172 this(char[] msg, Exception next = null);












