Skip to content

Commit 2ec7f8d

Browse files
NHDalyvchuravy
andcommitted
Rename internal macro _tryfinally to __tryfinally
Co-Authored-By: Valentin Churavy <[email protected]>
1 parent a74d583 commit 2ec7f8d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

base/timing.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ end
167167
# Like a try-finally block, except without introducing the try scope
168168
# NOTE: This is deprecated and should not be used from user logic. A proper solution to
169169
# this problem will be introduced in https://github.com/JuliaLang/julia/pull/39217
170-
macro _tryfinally(ex, fin)
170+
macro __tryfinally(ex, fin)
171171
Expr(:tryfinally,
172172
:($(esc(ex))),
173173
:($(esc(fin)))
@@ -217,7 +217,7 @@ macro time(ex)
217217
local stats = gc_num()
218218
local elapsedtime = time_ns()
219219
local compile_elapsedtime = cumulative_compile_time_ns_before()
220-
local val = @_tryfinally($(esc(ex)),
220+
local val = @__tryfinally($(esc(ex)),
221221
(elapsedtime = time_ns() - elapsedtime;
222222
compile_elapsedtime = cumulative_compile_time_ns_after() - compile_elapsedtime)
223223
)
@@ -264,7 +264,7 @@ macro timev(ex)
264264
local stats = gc_num()
265265
local elapsedtime = time_ns()
266266
local compile_elapsedtime = cumulative_compile_time_ns_before()
267-
local val = @_tryfinally($(esc(ex)),
267+
local val = @__tryfinally($(esc(ex)),
268268
(elapsedtime = time_ns() - elapsedtime;
269269
compile_elapsedtime = cumulative_compile_time_ns_after() - compile_elapsedtime)
270270
)

0 commit comments

Comments
 (0)