Skip to content

Commit

Permalink
Export KN_ symbols as the public API (#270)
Browse files Browse the repository at this point in the history
  • Loading branch information
odow authored Nov 28, 2023
1 parent 14b5497 commit bfeabda
Show file tree
Hide file tree
Showing 2 changed files with 310 additions and 311 deletions.
7 changes: 7 additions & 0 deletions src/KNITRO.jl
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,11 @@ include("libknitro.jl")
include("C_wrapper.jl")
include("MOI_wrapper.jl")

# KNITRO exports all `KN_XXX` symbols. If you don't want all of these symbols in
# your environment, then use `import KNITRO` instead of `using KNITRO`.

for name in filter(s -> startswith("$s", "KN_"), names(@__MODULE__; all=true))
@eval export $name
end

end
Loading

0 comments on commit bfeabda

Please sign in to comment.