{-# LANGUAGE ForeignFunctionInterface #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE NoFieldSelectors #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_HADDOCK prune #-}
module SDL3.Sys.Bindgen.Error.Safe (
SDL3.Sys.Bindgen.Error.Safe.sDL_OutOfMemory,
SDL3.Sys.Bindgen.Error.Safe.sDL_GetError,
SDL3.Sys.Bindgen.Error.Safe.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_b76f69013e6d2cc4 (void)"
, "{"
, " return (SDL_OutOfMemory)();"
, "}"
, "char const *hs_bindgen_af9c22d77d37c96f (void)"
, "{"
, " return (SDL_GetError)();"
, "}"
, "_Bool hs_bindgen_ee4e13eee0d070cc (void)"
, "{"
, " return (SDL_ClearError)();"
, "}"
]
)
)
foreign import ccall safe "hs_bindgen_b76f69013e6d2cc4"
hs_bindgen_b76f69013e6d2cc4_base
:: IO BG.CBool
hs_bindgen_b76f69013e6d2cc4 :: IO BG.CBool
hs_bindgen_b76f69013e6d2cc4 :: IO CBool
hs_bindgen_b76f69013e6d2cc4 =
(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_b76f69013e6d2cc4_base
sDL_OutOfMemory :: IO BG.CBool
sDL_OutOfMemory :: IO CBool
sDL_OutOfMemory = IO CBool
hs_bindgen_b76f69013e6d2cc4
foreign import ccall safe "hs_bindgen_af9c22d77d37c96f"
hs_bindgen_af9c22d77d37c96f_base
:: IO (BG.Ptr BG.Void)
hs_bindgen_af9c22d77d37c96f :: IO (PtrConst.PtrConst BG.CChar)
hs_bindgen_af9c22d77d37c96f :: IO (PtrConst CChar)
hs_bindgen_af9c22d77d37c96f =
(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_af9c22d77d37c96f_base
sDL_GetError :: IO (PtrConst.PtrConst BG.CChar)
sDL_GetError :: IO (PtrConst CChar)
sDL_GetError = IO (PtrConst CChar)
hs_bindgen_af9c22d77d37c96f
foreign import ccall safe "hs_bindgen_ee4e13eee0d070cc"
hs_bindgen_ee4e13eee0d070cc_base
:: IO BG.CBool
hs_bindgen_ee4e13eee0d070cc :: IO BG.CBool
hs_bindgen_ee4e13eee0d070cc :: IO CBool
hs_bindgen_ee4e13eee0d070cc =
(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_ee4e13eee0d070cc_base
sDL_ClearError :: IO BG.CBool
sDL_ClearError :: IO CBool
sDL_ClearError = IO CBool
hs_bindgen_ee4e13eee0d070cc