{-# LANGUAGE ForeignFunctionInterface #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE NoFieldSelectors #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_HADDOCK prune #-}
module SDL3.Sys.Bindgen.Endian.FunPtr (
SDL3.Sys.Bindgen.Endian.FunPtr.sDL_SwapFloat,
)
where
import Prelude (IO, fmap)
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_endian.h>"
, "/* sdl3bindgensys_SDL3.Sys.Bindgen.Endian_get_SDL_SwapFloat */"
, "__attribute__ ((const))"
, "float (*hs_bindgen_a0e501e24aab59b4 (void)) ("
, " float arg1"
, ")"
, "{"
, " return &SDL_SwapFloat;"
, "}"
]
)
)
foreign import ccall unsafe "hs_bindgen_a0e501e24aab59b4"
hs_bindgen_a0e501e24aab59b4_base
:: IO (BG.FunPtr BG.Void)
hs_bindgen_a0e501e24aab59b4 :: IO (BG.FunPtr (BG.CFloat -> IO BG.CFloat))
hs_bindgen_a0e501e24aab59b4 :: IO (FunPtr (CFloat -> IO CFloat))
hs_bindgen_a0e501e24aab59b4 =
(FunPtr Void -> FunPtr (CFloat -> IO CFloat))
-> IO (FunPtr Void) -> IO (FunPtr (CFloat -> IO CFloat))
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 (CFloat -> IO CFloat)
FFIType (FunPtr (CFloat -> IO CFloat))
-> FunPtr (CFloat -> IO CFloat)
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO (FunPtr Void)
hs_bindgen_a0e501e24aab59b4_base
{-# NOINLINE sDL_SwapFloat #-}
sDL_SwapFloat :: BG.FunPtr (BG.CFloat -> IO BG.CFloat)
sDL_SwapFloat :: FunPtr (CFloat -> IO CFloat)
sDL_SwapFloat =
IO (FunPtr (CFloat -> IO CFloat)) -> FunPtr (CFloat -> IO CFloat)
forall a. IO a -> a
BG.unsafePerformIO IO (FunPtr (CFloat -> IO CFloat))
hs_bindgen_a0e501e24aab59b4