diff options
-rw-r--r-- | lua2c.cmd | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -1,4 +1,9 @@ @echo off c:\work\luac %1 -o %~n1.clua +if errorlevel 1 goto failed c:\work\bin2c %~n1.clua %~n1.c %~n1 +if errorlevel 1 goto failed del %~n1.clua +exit 0 +failed: +exit 255 |