lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Open the LUAI_ASSERT macro, and then run this code, it will get an assertion failure.


On Thu, Mar 4, 2021 at 4:47 AM Gé Weijers <ge@weijers.org> wrote:
On Wed, Mar 3, 2021 at 10:41 AM Roberto Ierusalimschy <roberto@inf.puc-rio.br> wrote:

We must correct the definition of l_likely to "#define l_likely(x) (x)",
as this problem may arise in other places.

One question: why are the definitions for l_likely and l_unlikely that use the GNU builtin "__builtin_expect" only available by default in the Lua core and libraries, and not in C extension modules?

Thanks,


--



--
-- actboy168

Attachment: test.lua
Description: Binary data