MINOR: lua: Add a function to get a reference on a table in the stack
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 25 Feb 2020 09:20:04 +0000 (10:20 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 12 Aug 2021 06:57:07 +0000 (08:57 +0200)
commitba9e21dc68044e2ce5ffce317e8786f1079f6fee
treef4f0f57f52dab623af7f3fced11a0a0266094ad1
parent03fb1b26f739487a49e5fe0f40ae85fb5296b4f8
MINOR: lua: Add a function to get a reference on a table in the stack

The hlua_checktable() function may now be used to create and return a
reference on a table in stack, given its position. This function ensures it
is really a table and throws an exception if not.

This patch is mandatory to allow the support of the filters written in lua.
src/hlua.c