| Copyright | © 2017-2020 Albert Krewinkel |
|---|---|
| License | MIT |
| Maintainer | Albert Krewinkel <tarleb+hslua@zeitkraut.de> |
| Stability | beta |
| Portability | ForeignFunctionInterface |
| Safe Haskell | None |
| Language | Haskell2010 |
Foreign.Lua.Raw.Userdata
Description
Bindings to HsLua-specific functions used to push Haskell values as userdata.
Synopsis
- hslua_fromuserdata :: State -> StackIndex -> CString -> IO (Maybe a)
- hslua_newhsuserdata :: State -> a -> IO ()
- hslua_newudmetatable :: State -> CString -> IO LuaBool
Documentation
Arguments
| :: State | |
| -> StackIndex | userdata index |
| -> CString | name |
| -> IO (Maybe a) |
Retrieves a Haskell object from userdata at the given index. The userdata must have the given name.
hslua_newhsuserdata :: State -> a -> IO () Source #
Creates a new userdata wrapping the given Haskell object.