You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Simplified example. Binding the
IniFilename
of ImGuiIO:Binding a
str
that cannot be None is easy, simply do:The IniFilename field can be either NULL or a pointer to a C string. I'd like to allow setting this field to either None or a string.
But how to go about accepting None that gets turned into a NULL?
The below is what I came up with but it feels a unwieldy. I wonder if I'm missing a simpler way?
Beta Was this translation helpful? Give feedback.
All reactions