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
I would like to be able to use completion support with C++ however the completion callback does not have a user argument. If I could pass the this pointer of an object as user data I could integrate completion into my C++ program.
I am thinking about adding a new callback type and call to maintain backwards compatibility:
In fact, the callback prototype is copied from famous linenoise.h
As you can only register one callback, if you want to pass extra arg, you can use a static or global variable and refer it in the callback.
I would like to be able to use completion support with C++ however the completion callback does not have a user argument. If I could pass the
this
pointer of an object asuser
data I could integrate completion into my C++ program.I am thinking about adding a new callback type and call to maintain backwards compatibility:
If a
crossline_user_completion_callback
is registered it is called else thecrossline_completion_callback
is called if registered.Would you be interested in a pull request for such a change?
The text was updated successfully, but these errors were encountered: