{-# LANGUAGE ForeignFunctionInterface #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE NoFieldSelectors #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_HADDOCK prune #-}
module SDL3.Sys.Bindgen.IostreamShims.FunPtr (
SDL3.Sys.Bindgen.IostreamShims.FunPtr.lithon_SDL_IOprintf,
)
where
import Prelude (IO, fmap)
import HsBindgen.Runtime.LibC qualified
import HsBindgen.Runtime.PtrConst qualified as PtrConst
import HsBindgen.Runtime.Support qualified as BG
import HsBindgen.Runtime.Support.CAPI qualified
import SDL3.Sys.Bindgen.Iostream 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_iostream_shims.h>"
, "/* sdl3bindgensys_SDL3.Sys.Bindgen.IostreamShims_get_lithon_SDL_IOprintf */"
, "__attribute__ ((const))"
, "size_t (*hs_bindgen_d032484c29c37b48 (void)) ("
, " SDL_IOStream *arg1,"
, " char const *arg2"
, ")"
, "{"
, " return &lithon_SDL_IOprintf;"
, "}"
]
)
)
foreign import ccall unsafe "hs_bindgen_d032484c29c37b48"
hs_bindgen_d032484c29c37b48_base
:: IO (BG.FunPtr BG.Void)
hs_bindgen_d032484c29c37b48
:: IO
( BG.FunPtr
( BG.Ptr SDL3.Sys.Bindgen.Iostream.SDL_IOStream
-> PtrConst.PtrConst BG.CChar
-> IO HsBindgen.Runtime.LibC.CSize
)
)
hs_bindgen_d032484c29c37b48 :: IO (FunPtr (Ptr SDL_IOStream -> PtrConst CChar -> IO CSize))
hs_bindgen_d032484c29c37b48 =
(FunPtr Void
-> FunPtr (Ptr SDL_IOStream -> PtrConst CChar -> IO CSize))
-> IO (FunPtr Void)
-> IO (FunPtr (Ptr SDL_IOStream -> PtrConst CChar -> IO CSize))
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 (Ptr SDL_IOStream -> PtrConst CChar -> IO CSize)
FFIType (FunPtr (Ptr SDL_IOStream -> PtrConst CChar -> IO CSize))
-> FunPtr (Ptr SDL_IOStream -> PtrConst CChar -> IO CSize)
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO (FunPtr Void)
hs_bindgen_d032484c29c37b48_base
{-# NOINLINE lithon_SDL_IOprintf #-}
lithon_SDL_IOprintf
:: BG.FunPtr
( BG.Ptr SDL3.Sys.Bindgen.Iostream.SDL_IOStream
-> PtrConst.PtrConst BG.CChar
-> IO HsBindgen.Runtime.LibC.CSize
)
lithon_SDL_IOprintf :: FunPtr (Ptr SDL_IOStream -> PtrConst CChar -> IO CSize)
lithon_SDL_IOprintf =
IO (FunPtr (Ptr SDL_IOStream -> PtrConst CChar -> IO CSize))
-> FunPtr (Ptr SDL_IOStream -> PtrConst CChar -> IO CSize)
forall a. IO a -> a
BG.unsafePerformIO IO (FunPtr (Ptr SDL_IOStream -> PtrConst CChar -> IO CSize))
hs_bindgen_d032484c29c37b48