From: Elias Fleckenstein Date: Sun, 17 Apr 2022 17:51:36 +0000 (+0200) Subject: Take path to types.def as first argument X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=45b691209c95e5a758536a32564c329683550dca;p=protogen.git Take path to types.def as first argument --- diff --git a/protogen.lua b/protogen.lua index 66b433d..32addd2 100755 --- a/protogen.lua +++ b/protogen.lua @@ -3,7 +3,7 @@ require "luax" local h = io.open("types.h", "w") local c = io.open("types.c", "w") -local def = io.open("types.def", "r") +local def = io.open(arg[1] or "types.def", "r") local function emit_h(str) h:write(str)