hslua-1.3.0.1: Bindings to Lua, an embeddable scripting language
Copyright© 2007–2012 Gracjan Polak
2012–2016 Ömer Sinan Ağacan
2017-2020 Albert Krewinkel
LicenseMIT
MaintainerAlbert Krewinkel <tarleb+hslua@zeitkraut.de>
Stabilitybeta
Portabilitynon-portable (depends on GHC)
Safe HaskellNone
LanguageHaskell2010

Foreign.Lua.Raw.Auxiliary

Description

Raw bindings to functions and constants of the auxiliary library.

Synopsis

Documentation

hsluaL_tolstring :: State -> StackIndex -> Ptr CSize -> IO (Ptr CChar) Source #

luaL_loadbuffer :: State -> Ptr CChar -> CSize -> CString -> IO StatusCode Source #

luaL_newmetatable :: State -> CString -> IO LuaBool Source #

luaL_ref :: State -> StackIndex -> IO CInt Source #

luaL_testudata :: State -> StackIndex -> CString -> IO (Ptr ()) Source #

luaL_traceback :: State -> State -> CString -> CInt -> IO () Source #

luaL_unref :: State -> StackIndex -> CInt -> IO () Source #

Registry fields

loadedTableRegistryField :: String Source #

Key, in the registry, for table of loaded modules.

preloadTableRegistryField :: String Source #

Key, in the registry, for table of preloaded loaders.

References

data Reference Source #

Reference to a stored value.

Constructors

Reference CInt

Reference to a stored value

RefNil

Reference to a nil value

Instances

Instances details
Eq Reference Source # 
Instance details

Defined in Foreign.Lua.Raw.Auxiliary

Methods

(==) :: Reference -> Reference -> Bool

(/=) :: Reference -> Reference -> Bool

Show Reference Source # 
Instance details

Defined in Foreign.Lua.Raw.Auxiliary

Methods

showsPrec :: Int -> Reference -> ShowS

show :: Reference -> String

showList :: [Reference] -> ShowS

fromReference :: Reference -> CInt Source #

Convert a reference to its C representation.

toReference :: CInt -> Reference Source #

Create a reference from its C representation.