{-# LANGUAGE ForeignFunctionInterface #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE NoFieldSelectors #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_HADDOCK prune #-}
module SDL3.Sys.Bindgen.StdincShims.Safe (
SDL3.Sys.Bindgen.StdincShims.Safe.lithon_SDL_FOURCC,
)
where
import Prelude (IO, fmap)
import HsBindgen.Runtime.LibC qualified
import HsBindgen.Runtime.Support qualified as BG
import HsBindgen.Runtime.Support.CAPI qualified
import SDL3.Sys.Bindgen.Stdinc 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-bindgen-sys/SDL_stdinc_shims.h>"
, "Uint32 hs_bindgen_83ad4ee60e914b33 ("
, " Uint8 arg1,"
, " Uint8 arg2,"
, " Uint8 arg3,"
, " Uint8 arg4"
, ")"
, "{"
, " return (lithon_SDL_FOURCC)(arg1, arg2, arg3, arg4);"
, "}"
]
)
)
foreign import ccall safe "hs_bindgen_83ad4ee60e914b33"
hs_bindgen_83ad4ee60e914b33_base
:: HsBindgen.Runtime.LibC.Word8
-> HsBindgen.Runtime.LibC.Word8
-> HsBindgen.Runtime.LibC.Word8
-> HsBindgen.Runtime.LibC.Word8
-> IO HsBindgen.Runtime.LibC.Word32
hs_bindgen_83ad4ee60e914b33
:: SDL3.Sys.Bindgen.Stdinc.Uint8
-> SDL3.Sys.Bindgen.Stdinc.Uint8
-> SDL3.Sys.Bindgen.Stdinc.Uint8
-> SDL3.Sys.Bindgen.Stdinc.Uint8
-> IO SDL3.Sys.Bindgen.Stdinc.Uint32
hs_bindgen_83ad4ee60e914b33 :: Uint8 -> Uint8 -> Uint8 -> Uint8 -> IO Uint32
hs_bindgen_83ad4ee60e914b33 =
\Uint8
x0 ->
\Uint8
x1 ->
\Uint8
x2 ->
\Uint8
x3 ->
(Word32 -> Uint32) -> IO Word32 -> IO Uint32
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap
Word32 -> Uint32
FFIType Uint32 -> Uint32
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType
( Word8 -> Word8 -> Word8 -> Word8 -> IO Word32
hs_bindgen_83ad4ee60e914b33_base
(Uint8 -> FFIType Uint8
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Uint8
x0)
(Uint8 -> FFIType Uint8
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Uint8
x1)
(Uint8 -> FFIType Uint8
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Uint8
x2)
(Uint8 -> FFIType Uint8
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Uint8
x3)
)
lithon_SDL_FOURCC
:: SDL3.Sys.Bindgen.Stdinc.Uint8
-> SDL3.Sys.Bindgen.Stdinc.Uint8
-> SDL3.Sys.Bindgen.Stdinc.Uint8
-> SDL3.Sys.Bindgen.Stdinc.Uint8
-> IO SDL3.Sys.Bindgen.Stdinc.Uint32
lithon_SDL_FOURCC :: Uint8 -> Uint8 -> Uint8 -> Uint8 -> IO Uint32
lithon_SDL_FOURCC = Uint8 -> Uint8 -> Uint8 -> Uint8 -> IO Uint32
hs_bindgen_83ad4ee60e914b33