]> git.e2factory.org Git - e2factory.git/commit
assrt: return important arguments similar to assert()
authorTobias Ulmer <tu@emlix.com>
Fri, 1 Mar 2019 16:15:29 +0000 (17:15 +0100)
committerTobias Ulmer <tu@emlix.com>
Fri, 1 Mar 2019 16:15:29 +0000 (17:15 +0100)
commit99f47f4690f999e266b1fa504b54054d3e66d4a1
treeac2e031ffe7173611b105844dda5559e5bef466c
parent74a095d76643eddc01fbf00f738d61a81f94530a
assrt: return important arguments similar to assert()

assert() returns all argument, which is easy to do with the C interface
but complicates the Lua code. It also doesn't seem all that useful.

Instead we return the primary argument(s) only.

Signed-off-by: Tobias Ulmer <tu@emlix.com>
generic/assrt.lua