NeoMutt  2025-12-11-435-g4ac674
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
lib.h File Reference

Integrated Lua scripting. More...

+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void lua_cleanup (void)
 Clean up Lua.
 
enum CommandResult parse_lua (const struct Command *cmd, struct Buffer *line, const struct ParseContext *pc, struct ParseError *pe)
 Parse the 'lua' command - Implements Command::parse() -.
 
enum CommandResult parse_lua_source (const struct Command *cmd, struct Buffer *line, const struct ParseContext *pc, struct ParseError *pe)
 Parse the 'lua-source' command - Implements Command::parse() -.
 

Detailed Description

Integrated Lua scripting.

Authors
  • Richard Russon

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Definition in file lib.h.

Function Documentation

◆ lua_cleanup()

void lua_cleanup ( void )

Clean up Lua.

Definition at line 167 of file commands.c.

168{
169 if (LuaState)
170 {
171 lua_close(LuaState);
172 LuaState = NULL;
173 }
174}
lua_State * LuaState
Global Lua State.
Definition lua.c:56
+ Here is the caller graph for this function: