In the code,
lua_unlock are defined as
(void)0, which is essentially a no-op. Why?
- Vanilla Lua is pure ANSI C and runs on a single thread. So we don't need
- Lua is designed to be ported to many different platforms. Porters can customize the behavior of Lua by overriding these macros. For example, you might need some form of
GILlike Python if you want multi-threading.
You need to implement your own assert mechanism if you want to debug the internal of Lua