/* Copyright (c) 2013 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Leonardo de Moura */ #ifdef LEAN_USE_LUA #include namespace lean { void setfuncs(lua_State * L, luaL_Reg const * l, int nup); /** \brief Wrapper for invoking function f, and catching Lean exceptions. */ int safe_function_wrapper(lua_State * L, lua_CFunction f); template int safe_function(lua_State * L) { return safe_function_wrapper(L, F); } } #endif