Skip to content

Commit 95b8843

Browse files
arnavk23Copilot
andauthored
Update src/OptimizationProblems.jl
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 39ea750 commit 95b8843

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/OptimizationProblems.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,11 @@ _adjust_nvar_warn_message(problem_name, n_orig, n) =
1111
Issue a warning if the number of variables was adjusted, showing both original and adjusted values.
1212
"""
1313
macro adjust_nvar_warn(problem_name, n_orig, n)
14+
helper = GlobalRef(@__MODULE__, :_adjust_nvar_warn_message)
1415
return quote
1516
local _n_orig = $(esc(n_orig))
1617
local _n = $(esc(n))
17-
(_n == _n_orig) || @warn(_adjust_nvar_warn_message($(esc(problem_name)), _n_orig, _n))
18+
(_n == _n_orig) || @warn($helper($(esc(problem_name)), _n_orig, _n))
1819
end
1920
end
2021

0 commit comments

Comments
 (0)