Fluorohydride / ygopro

A script engine for "yu-gi-oh!" and sample gui
GNU General Public License v2.0
1.85k stars 596 forks source link

use LUA_USE_APICHECK for debug #2590

Closed mercury233 closed 2 months ago

mercury233 commented 2 months ago

As in most C libraries, the Lua API functions do not check their arguments for validity or consistency. However, you can change this behavior by compiling Lua with the macro LUA_USE_APICHECK defined. https://www.lua.org/manual/5.4/manual.html

We can use this since https://github.com/Fluorohydride/ygopro/issues/2406 is fixed