Closed sonoro1234 closed 3 years ago
Drat 😰 Is this preventing you from using the library in a project? Assuming you're using both libraries in the same project? Or is this preventing code generation in cimgui?
LuaJIT-ImGui is including cimnodes for Nelarius/imnodes and cimnodes_r for rokups/ImNodes (with namespace ImNodes). I have not tried but I guess that cimnodes generation will succed but using both libraries (as LuaJIT-ImGui does) is open to namespace clashes.
Oh right, I hadn't thought about the LuaJIT-ImGui use case at all 🤔 Wondering what the options here are.
imnodes
. It's inconsistent with the enum constants though, and I really like the way enum constant usage is consistent with ImGui nowImnodes
in order to be consistent with the CamelCase naming used elsewhereA bit unfortunate that our two projects have the exact same name 😂 I think @rokups was first, so maybe I should call this ImNodes2 or something 😄
Ehm but why is this a problem? I doubt anyone is going to use both libraries in same codebase.
Ehm but why is this a problem? I doubt anyone is going to use both libraries in same codebase.
I am doing it in LuaJIT-ImGui
ImNodes2 or something
ImNodesN ?
As unfortunate as the namespace collision is, I'll keep things as they currently are 😞 I never really intended this to be used in the same codebase as other node editors.
@Nelarius Please, consider taking a look at this solution done by ImGuizmo: https://github.com/CedricGuillemet/ImGuizmo/commit/e1049a960a1ab450d578196f938e73502b91ebaa
Sorry for not realizing this earlier: namespace ImNodes will collide with https://github.com/rokups/ImNodes/blob/02b085dace8bdd815374d6440efb1f70d8a9ebaf/ImNodes.h#L35