{-# LANGUAGE ForeignFunctionInterface #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE NoFieldSelectors #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_HADDOCK prune #-}
module SDL3.Sys.Bindgen.Error.Unsafe (
SDL3.Sys.Bindgen.Error.Unsafe.sDL_OutOfMemory,
SDL3.Sys.Bindgen.Error.Unsafe.sDL_GetError,
SDL3.Sys.Bindgen.Error.Unsafe.sDL_ClearError,
)
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_error.h>"
, "_Bool hs_bindgen_bdcf7fcfe4f61e9a (void)"
, "{"
, " return (SDL_OutOfMemory)();"
, "}"
, "char const *hs_bindgen_f0d75ef957ae5815 (void)"
, "{"
, " return (SDL_GetError)();"
, "}"
, "_Bool hs_bindgen_c7e60181e6f1a240 (void)"
, "{"
, " return (SDL_ClearError)();"
, "}"
]
)
)
foreign import ccall unsafe "hs_bindgen_bdcf7fcfe4f61e9a"
hs_bindgen_bdcf7fcfe4f61e9a_base
:: IO BG.CBool
hs_bindgen_bdcf7fcfe4f61e9a :: IO BG.CBool
hs_bindgen_bdcf7fcfe4f61e9a :: IO CBool
hs_bindgen_bdcf7fcfe4f61e9a =
(CBool -> CBool) -> IO CBool -> IO CBool
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap CBool -> CBool
FFIType CBool -> CBool
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO CBool
hs_bindgen_bdcf7fcfe4f61e9a_base
sDL_OutOfMemory :: IO BG.CBool
sDL_OutOfMemory :: IO CBool
sDL_OutOfMemory = IO CBool
hs_bindgen_bdcf7fcfe4f61e9a
foreign import ccall unsafe "hs_bindgen_f0d75ef957ae5815"
hs_bindgen_f0d75ef957ae5815_base
:: IO (BG.Ptr BG.Void)
hs_bindgen_f0d75ef957ae5815 :: IO (PtrConst.PtrConst BG.CChar)
hs_bindgen_f0d75ef957ae5815 :: IO (PtrConst CChar)
hs_bindgen_f0d75ef957ae5815 =
(Ptr Void -> PtrConst CChar)
-> IO (Ptr Void) -> 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 Ptr Void -> PtrConst CChar
FFIType (PtrConst CChar) -> PtrConst CChar
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO (Ptr Void)
hs_bindgen_f0d75ef957ae5815_base
sDL_GetError :: IO (PtrConst.PtrConst BG.CChar)
sDL_GetError :: IO (PtrConst CChar)
sDL_GetError = IO (PtrConst CChar)
hs_bindgen_f0d75ef957ae5815
foreign import ccall unsafe "hs_bindgen_c7e60181e6f1a240"
hs_bindgen_c7e60181e6f1a240_base
:: IO BG.CBool
hs_bindgen_c7e60181e6f1a240 :: IO BG.CBool
hs_bindgen_c7e60181e6f1a240 :: IO CBool
hs_bindgen_c7e60181e6f1a240 =
(CBool -> CBool) -> IO CBool -> IO CBool
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap CBool -> CBool
FFIType CBool -> CBool
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO CBool
hs_bindgen_c7e60181e6f1a240_base
sDL_ClearError :: IO BG.CBool
sDL_ClearError :: IO CBool
sDL_ClearError = IO CBool
hs_bindgen_c7e60181e6f1a240