summaryrefslogtreecommitdiff
path: root/lua2c.cmd
diff options
context:
space:
mode:
Diffstat (limited to 'lua2c.cmd')
-rw-r--r--lua2c.cmd5
1 files changed, 5 insertions, 0 deletions
diff --git a/lua2c.cmd b/lua2c.cmd
index df71c76..4389e66 100644
--- a/lua2c.cmd
+++ b/lua2c.cmd
@@ -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