Safe Haskell | None |
---|---|
Language | Haskell2010 |
Module exposing a Context
to inline C++ code. We only have used
this for experiments, so use with caution. See the C++ tests to see
how to build inline C++ code.
Synopsis
- module Language.C.Inline
- cppCtx :: Context
- cppTypePairs :: [(CIdentifier, TypeQ)] -> Context
- using :: String -> DecsQ
- data AbstractCppExceptionPtr
Documentation
module Language.C.Inline
The equivalent of baseCtx
for C++. It specifies the .cpp
file extension for the C file, so that g++ will decide to build C++
instead of C. See the .cabal
test target for an example on how to
build.
cppTypePairs :: [(CIdentifier, TypeQ)] -> Context Source #
using :: String -> DecsQ Source #
Emits an using
directive, e.g.
C.using "namespace std" ==> using namespace std
data AbstractCppExceptionPtr Source #
Marks an std::exception_ptr
. Only used via Ptr
.