summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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");