From 5dac5be47f2d9af8cbceead6511ff4c0fc40bab5 Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Tue, 30 Jun 2015 15:31:44 +0000 Subject: MirLua: !api break - separated m_clist and m_genmenu modules - moved AddMainMenuItem, AddContactMenuItem, AddTrayMenuItem to m_clist - added BuildMainMenu, BuildContactMenu and BuildTrayMenu to m_clist - updated examples - version bump git-svn-id: http://svn.miranda-ng.org/main/trunk@14458 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/MirLua/src/mlua_utils.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'plugins/MirLua/src/mlua_utils.cpp') diff --git a/plugins/MirLua/src/mlua_utils.cpp b/plugins/MirLua/src/mlua_utils.cpp index aab6823b85..371b23d95b 100644 --- a/plugins/MirLua/src/mlua_utils.cpp +++ b/plugins/MirLua/src/mlua_utils.cpp @@ -1,5 +1,11 @@ #include "stdafx.h" +bool luaM_checkboolean(lua_State *L, int idx) +{ + luaL_checktype(L, 2, LUA_TBOOLEAN); + return lua_toboolean(L, idx); +} + WPARAM luaM_towparam(lua_State *L, int idx) { WPARAM wParam = NULL; -- cgit v1.2.3