hook_fini.c 244 B

12345678910111213
  1. #include <stdlib.h>
  2. #include "hook.h"
  3. CLISH_HOOK_FINI(clish_plugin_hook_fini)
  4. {
  5. clish_context_t *context = (clish_context_t *) clish_context;
  6. lua_State *L = clish_shell__del_udata(context->shell, LUA_UDATA);
  7. lua_close(L);
  8. return (0);
  9. }