From 0ccfb065377e60ca222390d9f25d82d1f9c1e5b2 Mon Sep 17 00:00:00 2001 From: Aki Date: Sun, 16 Aug 2020 06:03:09 +0200 Subject: Updated load_handler doc comment --- plop.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plop.c b/plop.c index f24b7ab..0f045f8 100644 --- a/plop.c +++ b/plop.c @@ -83,7 +83,10 @@ int make_server(const char * node, const char * service) return server; } -// TODO: Write documentation for load_handler +/// Loads a file in path, executes it, then puts first result into package.loaded table and into global table. +/// \param L Lua state to load the handler into +/// \param path Path the script that returns handle is located at +/// \param LUA_OK if successful, appropriate Lua error otherwise int load_handler(lua_State * L, const char * path) { lua_getglobal(L, "package"); -- cgit v1.1