lua_fini.c 246 B

12345678910111213
  1. #include <stdlib.h>
  2. #include "private.h"
  3. CLISH_HOOK_FINI(clish_plugin_lua_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. }