mirror of
https://github.com/centau/vide.git
synced 2026-08-20 14:41:37 +00:00
Auto strict mode based on optimization level
This commit is contained in:
parent
8b4210e66a
commit
cc4b390d3d
5 changed files with 31 additions and 28 deletions
|
|
@ -1 +1,7 @@
|
|||
return { strict = false }
|
||||
local function inline_test(): string
|
||||
return debug.info(1, "n")
|
||||
end
|
||||
|
||||
local is_O2 = inline_test() ~= "inline_test"
|
||||
|
||||
return { strict = not is_O2 }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue