Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation fixes and moved to FMI.jl #49

Merged
merged 4 commits into from
Nov 6, 2023
Merged

Conversation

0815Creeper
Copy link
Contributor

No description provided.

src/FMI2/cconst.jl Outdated Show resolved Hide resolved
src/FMI2/convert.jl Outdated Show resolved Hide resolved
const fmi2FMUstate = Ptr{Cvoid}
const fmi2Component = Ptr{Cvoid}
const fmi2ComponentEnvironment = Ptr{Cvoid}
const fmi2Enum = Array{Array{String}} # TODO: remove, this is not part of the spec!
export fmi2Char, fmi2String, fmi2Boolean, fmi2Real, fmi2Integer, fmi2Byte, fmi2ValueReference, fmi2FMUstate, fmi2Component, fmi2ComponentEnvironment, fmi2Enum

const fmi2Status = Cuint
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is the declaration seperated from the doc string now?
(doc string starts in L44, declaration is in L36)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

because otherwise each status would need its own docstring. Even if that option is preferred, I recommend to implement it in the future and go with this solution for now

const fmi2StatusError = Cuint(3)
const fmi2StatusFatal = Cuint(4)
const fmi2StatusPending = Cuint(5)
fmi2Status, fmi2StatusOK, fmi2StatusWarning, fmi2StatusDiscard, fmi2StatusError, fmi2StatusFatal, fmi2StatusPending
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what's this? (list of status codes)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here: one docstring for all codes (take note of the line numbers, github's formatting here is unhelpful)

"""
`fmi3Boolean` TODO
"""
fmi3False, fmi3True
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here, the same

@ThummeTo ThummeTo merged commit c2342ae into ThummeTo:main Nov 6, 2023
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants