{-# LANGUAGE ForeignFunctionInterface #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE NoFieldSelectors #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_HADDOCK prune #-}
module SDL3.Sys.Bindgen.Version.FunPtr (
SDL3.Sys.Bindgen.Version.FunPtr.sDL_GetVersion,
SDL3.Sys.Bindgen.Version.FunPtr.sDL_GetRevision,
)
where
import Prelude (IO, fmap)
import HsBindgen.Runtime.PtrConst qualified as PtrConst
import HsBindgen.Runtime.Support qualified as BG
import HsBindgen.Runtime.Support.CAPI qualified
$( HsBindgen.Runtime.Support.CAPI.addCSource
( HsBindgen.Runtime.Support.CAPI.unlines
[ "#define SDL_MAIN_HANDLED"
, "#define SDL_SLOW_MEMCPY"
, "#define SDL_SLOW_MEMMOVE"
, "#define SDL_SLOW_MEMSET"
, "#include <SDL3/SDL_version.h>"
, "/* sdl3bindgensys_SDL3.Sys.Bindgen.Version_get_SDL_GetVersion */"
, "__attribute__ ((const))"
, "signed int (*hs_bindgen_44ed10f40287cec8 (void)) (void)"
, "{"
, " return &SDL_GetVersion;"
, "}"
, "/* sdl3bindgensys_SDL3.Sys.Bindgen.Version_get_SDL_GetRevision */"
, "__attribute__ ((const))"
, "char const *(*hs_bindgen_e9f711a7185d859a (void)) (void)"
, "{"
, " return &SDL_GetRevision;"
, "}"
]
)
)
foreign import ccall unsafe "hs_bindgen_44ed10f40287cec8"
hs_bindgen_44ed10f40287cec8_base
:: IO (BG.FunPtr BG.Void)
hs_bindgen_44ed10f40287cec8 :: IO (BG.FunPtr (IO BG.CInt))
hs_bindgen_44ed10f40287cec8 :: IO (FunPtr (IO CInt))
hs_bindgen_44ed10f40287cec8 =
(FunPtr Void -> FunPtr (IO CInt))
-> IO (FunPtr Void) -> IO (FunPtr (IO CInt))
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap FunPtr Void -> FunPtr (IO CInt)
FFIType (FunPtr (IO CInt)) -> FunPtr (IO CInt)
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO (FunPtr Void)
hs_bindgen_44ed10f40287cec8_base
{-# NOINLINE sDL_GetVersion #-}
sDL_GetVersion :: BG.FunPtr (IO BG.CInt)
sDL_GetVersion :: FunPtr (IO CInt)
sDL_GetVersion =
IO (FunPtr (IO CInt)) -> FunPtr (IO CInt)
forall a. IO a -> a
BG.unsafePerformIO IO (FunPtr (IO CInt))
hs_bindgen_44ed10f40287cec8
foreign import ccall unsafe "hs_bindgen_e9f711a7185d859a"
hs_bindgen_e9f711a7185d859a_base
:: IO (BG.FunPtr BG.Void)
hs_bindgen_e9f711a7185d859a :: IO (BG.FunPtr (IO (PtrConst.PtrConst BG.CChar)))
hs_bindgen_e9f711a7185d859a :: IO (FunPtr (IO (PtrConst CChar)))
hs_bindgen_e9f711a7185d859a =
(FunPtr Void -> FunPtr (IO (PtrConst CChar)))
-> IO (FunPtr Void) -> IO (FunPtr (IO (PtrConst CChar)))
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap FunPtr Void -> FunPtr (IO (PtrConst CChar))
FFIType (FunPtr (IO (PtrConst CChar)))
-> FunPtr (IO (PtrConst CChar))
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO (FunPtr Void)
hs_bindgen_e9f711a7185d859a_base
{-# NOINLINE sDL_GetRevision #-}
sDL_GetRevision :: BG.FunPtr (IO (PtrConst.PtrConst BG.CChar))
sDL_GetRevision :: FunPtr (IO (PtrConst CChar))
sDL_GetRevision =
IO (FunPtr (IO (PtrConst CChar))) -> FunPtr (IO (PtrConst CChar))
forall a. IO a -> a
BG.unsafePerformIO IO (FunPtr (IO (PtrConst CChar)))
hs_bindgen_e9f711a7185d859a