summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2020-08-16 06:03:09 +0200
committerAki <please@ignore.pl>2020-08-16 06:03:09 +0200
commit0ccfb065377e60ca222390d9f25d82d1f9c1e5b2 (patch)
tree18ea847aab083a2b0005b3a93812756e6d6dbe6e
parent8e60998945cf27978c8bedf8a352cb1e0f7cc89c (diff)
downloadplop-0ccfb065377e60ca222390d9f25d82d1f9c1e5b2.zip
plop-0ccfb065377e60ca222390d9f25d82d1f9c1e5b2.tar.gz
plop-0ccfb065377e60ca222390d9f25d82d1f9c1e5b2.tar.bz2
Updated load_handler doc comment
-rw-r--r--plop.c5
1 files changed, 4 insertions, 1 deletions
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");