Advertisement

Crash in Windows

Started by November 02, 2024 05:30 AM
2 comments, last by WitchLord 1 month, 2 weeks ago

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

My bad, asOBJ_APP_CLASS_MORE_CONSTRUCTORS fixes this problem

Advertisement

I wish it was possible to automatically detect the correct use of these flags so they could be all be determined with asGetTypeTraits<T>. Unfortunately the C++ standard hasn't really predicted all variations in the ABI on different platforms and compilers.

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

This topic is closed to new replies.

Advertisement