Nelarius / imnodes

A small, dependency-free node editor for dear imgui
MIT License
2.01k stars 244 forks source link

Default arguments on pointers for C binding #62

Closed sonoro1234 closed 3 years ago

sonoro1234 commented 3 years ago

I have done a C wrapping of imnodes in https://github.com/cimgui/cimnodes

It would be much better for default arguments on pointers to be NULL than 0

bool IsLinkCreated(
    int* started_at_attribute_id,
    int* ended_at_attribute_id,
    bool* created_from_snap = NULL);

Would you mind doing this changes?

Nelarius commented 3 years ago

Really cool contribution @sonoro1234 ! 👍 Should be an easy enough change to make.