{-# LINE 1 "src/Foreign/Lua/Core/Constants.hsc" #-}
{-|
Module      : Foreign.Lua.Core.Constants
Copyright   : © 2007–2012 Gracjan Polak,
                2012–2016 Ömer Sinan Ağacan,
                2017-2019 Albert Krewinkel
License     : MIT
Maintainer  : Albert Krewinkel <tarleb+hslua@zeitkraut.de>
Stability   : beta
Portability : ForeignFunctionInterface

Lua constants
-}
module Foreign.Lua.Core.Constants
  ( multret
  , registryindex
  , refnil
  , noref
  ) where

import Foreign.Lua.Core.Types




-- | Alias for C constant @LUA_MULTRET@. See
-- <https://www.lua.org/manual/5.3/#lua_call lua_call>.
multret :: NumResults
multret :: NumResults
multret = CInt -> NumResults
NumResults (CInt -> NumResults) -> CInt -> NumResults
forall a b. (a -> b) -> a -> b
$ -CInt
1
{-# LINE 29 "src/Foreign/Lua/Core/Constants.hsc" #-}

-- | Alias for C constant @LUA_REGISTRYINDEX@. See
-- <https://www.lua.org/manual/5.3/#3.5 Lua registry>.
registryindex :: StackIndex
registryindex :: StackIndex
registryindex = CInt -> StackIndex
StackIndex (CInt -> StackIndex) -> CInt -> StackIndex
forall a b. (a -> b) -> a -> b
$ -CInt
1001000
{-# LINE 34 "src/Foreign/Lua/Core/Constants.hsc" #-}

-- | Value signaling that no reference was created.
refnil :: Int
refnil :: Int
refnil = -Int
1
{-# LINE 38 "src/Foreign/Lua/Core/Constants.hsc" #-}

-- | Value signaling that no reference was found.
noref :: Int
noref :: Int
noref = -Int
2
{-# LINE 42 "src/Foreign/Lua/Core/Constants.hsc" #-}