Skip to content

Instantly share code, notes, and snippets.

@ccoffrin
Created May 20, 2019 15:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ccoffrin/e181667c272930ca177a2d9eed3517d2 to your computer and use it in GitHub Desktop.
Save ccoffrin/e181667c272930ca177a2d9eed3517d2 to your computer and use it in GitHub Desktop.
Export MathOptInterface Status Enums
import MathOptInterface: TerminationStatusCode
export TerminationStatusCode
import MathOptInterface: ResultStatusCode
export ResultStatusCode
for status_code_enum in [TerminationStatusCode, ResultStatusCode]
for status_code in instances(status_code_enum)
@eval import MathOptInterface: $(Symbol(status_code))
@eval export $(Symbol(status_code))
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment