plugin_fini.c 191 B

12345678910111213
  1. #include <stdlib.h>
  2. #include "private.h"
  3. CLISH_PLUGIN_FINI(clish_plugin_lua_fini)
  4. {
  5. lua_State *L = clish_shell__del_udata(clish_shell, LUA_UDATA);
  6. if (L)
  7. lua_close(L);
  8. return (0);
  9. }