This commit crashes on windows (visual studio) but works fine on linux (gcc): https://github.com/dviglo2d/sprite_manipulator/commit/88f8b1733f385e7765e88d5e031382c68027f84d
ivec2 - struct from glm library and have unions https://github.com/dviglo2d/glm/blob/33b4a621a697a305bc3a7610d290677b96beb181/glm/detail/type_vec2.hpp#L72-L73
Registeread as asOBJ_VALUE | asOBJ_POD | asOBJ_APP_CLASS_ALLINTS | asOBJ_APP_CLASS_UNION
https://github.com/dviglo2d/sprite_manipulator/blob/dfgdfgdf4r/src/as_ivec2.cpp