sonoro1234 / LuaJIT-ImGui

LuaJIT ffi binding for imgui, backends and extension widgets
MIT License
225 stars 29 forks source link

nonUDT2? #5

Closed sonoro1234 closed 5 years ago

sonoro1234 commented 5 years ago

Depending on the compiler used, there is a crash when the functions return a user defined type like ImVec2 and others.

To avoid that you should use use_nonUDT2 after require as in:

local ig = require"imgui.glfw"
ig.use_nonUDT2() --this is needed if compiled with MSVC

I have been able to test mingw-w64 which doesnt need this and MSVC that needs it.

I would like to have a report for other compilers and systems

sonoro1234 commented 5 years ago

Changed by PR #7