{-| Module : Foreign.Lua.Core.Constants Copyright : © 2007–2012 Gracjan Polak, 2012–2016 Ömer Sinan Ağacan, 2017-2020 Albert Krewinkel License : MIT Maintainer : Albert Krewinkel Stability : beta Portability : ForeignFunctionInterface Lua constants -} module Foreign.Lua.Core.Constants ( multret , registryindex , refnil , noref ) where import Foreign.Lua.Core.Types #include "lua.h" #include "lauxlib.h" -- | Alias for C constant @LUA_MULTRET@. See -- . multret :: NumResults multret = NumResults $ #{const LUA_MULTRET} -- | Alias for C constant @LUA_REGISTRYINDEX@. See -- . registryindex :: StackIndex registryindex = StackIndex $ #{const LUA_REGISTRYINDEX} -- | Value signaling that no reference was created. refnil :: Int refnil = #{const LUA_REFNIL} -- | Value signaling that no reference was found. noref :: Int noref = #{const LUA_NOREF}