summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/dump_cinit.lua2
-rw-r--r--tools/upbc.lua6
2 files changed, 7 insertions, 1 deletions
diff --git a/tools/dump_cinit.lua b/tools/dump_cinit.lua
index 13e1f52..dac2498 100644
--- a/tools/dump_cinit.lua
+++ b/tools/dump_cinit.lua
@@ -10,7 +10,7 @@
--]]
-local upbtable = require "upbtable"
+local upbtable = require "upb.table"
local upb = require "upb"
local export = {}
diff --git a/tools/upbc.lua b/tools/upbc.lua
index f68d25f..955da57 100644
--- a/tools/upbc.lua
+++ b/tools/upbc.lua
@@ -19,6 +19,12 @@ local upb = require "upb"
local src = arg[1]
local outbase = arg[2]
local basename = arg[3]
+
+if not (src and outbase and basename) then
+ print("Usage: upbc <binary descriptor> <output filename base> <symbol prefix>")
+ return 1
+end
+
local hfilename = outbase .. ".upb.h"
local cfilename = outbase .. ".upb.c"
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback