X-Git-Url: https://git.llucax.com/software/druntime.git/blobdiff_plain/bcf5b1203472d877e1f3560ca595cc1341c3783b..ee7c028ebdd89ffc05410551c6e4812187049279:/src/compiler/dmd/dmain2.d diff --git a/src/compiler/dmd/dmain2.d b/src/compiler/dmd/dmain2.d index 8bccd62..15c46d2 100644 --- a/src/compiler/dmd/dmain2.d +++ b/src/compiler/dmd/dmain2.d @@ -101,7 +101,7 @@ extern (C) bool rt_unloadLibrary(void* ptr) */ extern (C) void onAssertError(string file, size_t line); extern (C) void onAssertErrorMsg(string file, size_t line, string msg); -extern (C) void onArrayBoundsError(string file, size_t line); +extern (C) void onRangeError(string file, size_t line); extern (C) void onHiddenFuncError(Object o); extern (C) void onSwitchError(string file, size_t line); extern (C) bool runModuleUnitTests(); @@ -124,7 +124,7 @@ extern (C) static void _d_assert_msg(string msg, string file, uint line) extern (C) void _d_array_bounds(string file, uint line) { - onArrayBoundsError(file, line); + onRangeError(file, line); } extern (C) void _d_switch_error(string file, uint line) @@ -286,7 +286,7 @@ extern (C) int main(int argc, char **argv) bool trapExceptions = rt_trapExceptions; - void tryExec(void delegate() dg) + void tryExec(scope void delegate() dg) { if (trapExceptions)