You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Short background: remade the build system to work in conjuction with the rest of my system that builds Lua modules for a game. The build system for this game defines the macro NDEBUG for release builds.
While testing a build of this module with the NDEBUG macro, it was noticed that ffi.sizeof("struct something") was returning 0 (with this struct definition being struct something { int value; };). It will correctly return 4 if this macro is not defined. The host is a Linux x86_64 machine and it was built using GCC 9 (version doesn't matter).
I don't know if you will want to fix this issue but I'll use it as a heads-up for the future.
The text was updated successfully, but these errors were encountered:
Short background: remade the build system to work in conjuction with the rest of my system that builds Lua modules for a game. The build system for this game defines the macro
NDEBUG
for release builds.While testing a build of this module with the
NDEBUG
macro, it was noticed thatffi.sizeof("struct something")
was returning 0 (with this struct definition beingstruct something { int value; };
). It will correctly return 4 if this macro is not defined. The host is a Linux x86_64 machine and it was built using GCC 9 (version doesn't matter).I don't know if you will want to fix this issue but I'll use it as a heads-up for the future.
The text was updated successfully, but these errors were encountered: