bcb4e51a409d94ae670de96afb8483a4f7855294Stephan Bosch/* Copyright (c) 2017-2018 Dovecot authors, see the included COPYING file */
e88e76e782853e826d00524ee1133e64fb69b3d9Aki Tuomi struct dlua_script *script = dlua_script_from_state(L);
e88e76e782853e826d00524ee1133e64fb69b3d9Aki Tuomi struct dlua_script *script = dlua_script_from_state(L);
e88e76e782853e826d00524ee1133e64fb69b3d9Aki Tuomi struct dlua_script *script = dlua_script_from_state(L);
e88e76e782853e826d00524ee1133e64fb69b3d9Aki Tuomi struct dlua_script *script = dlua_script_from_state(L);
e88e76e782853e826d00524ee1133e64fb69b3d9Aki Tuomivoid dlua_dovecot_register(struct dlua_script *script)
e88e76e782853e826d00524ee1133e64fb69b3d9Aki Tuomi /* Create table for holding values */
e88e76e782853e826d00524ee1133e64fb69b3d9Aki Tuomi /* push new metatable to stack */
e88e76e782853e826d00524ee1133e64fb69b3d9Aki Tuomi /* this will register functions to the metatable itself */
e88e76e782853e826d00524ee1133e64fb69b3d9Aki Tuomi /* point __index to self */
e88e76e782853e826d00524ee1133e64fb69b3d9Aki Tuomi /* set table's metatable, pops stack */
e88e76e782853e826d00524ee1133e64fb69b3d9Aki Tuomi /* register table as global */