| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Language.C.Inline.Cpp.Exceptions
Description
A module that contains exception-safe equivalents of inline-c QuasiQuoters.
Documentation
data CppException Source #
An exception thrown in C++ code.
Constructors
| CppStdException String | |
| CppOtherException |
Instances
throwBlock :: QuasiQuoter Source #
Like tryBlock, but will throw CppExceptions rather than returning
them in an Either
tryBlock :: QuasiQuoter Source #
Similar to block, but C++ exceptions will be caught and the result is (Either CppException value). The return type must be void or constructible with {}.
Using this will automatically include exception, cstring and cstdlib.
catchBlock :: QuasiQuoter Source #
Variant of throwBlock for blocks which return void.