Changeset 2241
- Timestamp:
- 05/22/07 22:13:58 (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
r2195 r2241 74 74 } 75 75 76 bool _d_isHalting = false; 77 78 extern (C) bool cr_isHalting() 79 { 80 return _d_isHalting; 81 } 82 76 83 extern (C) bool cr_trapExceptions = true; 77 84 … … 152 159 _moduleUnitTests(); 153 160 result = main(args); 161 _d_isHalting = true; 154 162 _moduleDtor(); 155 163 gc_term(); trunk/lib/compiler/dmd/genobj.d
r2195 r2241 893 893 size_t line; 894 894 Exception next; 895 static bool halting;896 895 897 896 this(char[] msg, Exception next = null) … … 1065 1064 { 1066 1065 debug(PRINTF) printf("_moduleDtor(): %d modules\n", _moduleinfo_dtors_i); 1067 Exception.halting = true; 1066 1068 1067 for (uint i = _moduleinfo_dtors_i; i-- != 0;) 1069 1068 { trunk/lib/compiler/gdc/dgccmain2.d
r2195 r2241 72 72 } 73 73 74 bool _d_isHalting = false; 75 76 extern (C) bool cr_isHalting() 77 { 78 return _d_isHalting; 79 } 80 74 81 extern (C) bool cr_trapExceptions = true; 75 82 … … 137 144 _moduleUnitTests(); 138 145 result = main_func(args); 146 _d_isHalting = true; 139 147 _moduleDtor(); 140 148 gc_term(); trunk/lib/compiler/gdc/genobj.d
r2195 r2241 907 907 size_t line; 908 908 Exception next; 909 static bool halting;910 909 911 910 this(char[] msg, Exception next = null) … … 1086 1085 { 1087 1086 debug(PRINTF) printf("_moduleDtor(): %d modules\n", _moduleinfo_dtors_i); 1088 Exception.halting = true; 1087 1089 1088 for (uint i = _moduleinfo_dtors_i; i-- != 0;) 1090 1089 { trunk/object.di
r2195 r2241 168 168 size_t line; 169 169 Exception next; 170 static bool halting;171 170 172 171 this(char[] msg, Exception next = null);












