Skip to content

Commit 4957b35

Browse files
committed
[cppad.cpp] expose cppadcg bindings
1 parent ddc4788 commit 4957b35

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/cppad.cpp

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
* Copyright 2021 INRIA
33
*/
44

5+
#ifdef PYCPPAD_BUILD_CPPAD_CODEGEN_BINDINGS
6+
#include "pycppad/codegen/cppadcg-scalar.hpp"
7+
#endif
8+
59
#include "pycppad/cppad.hpp"
610
#include "pycppad/cppad-scalar.hpp"
711

@@ -12,6 +16,10 @@ namespace pycppad
1216
void enablePyCppAD()
1317
{
1418
exposeCppADScalar<double>();
15-
//exposeCppADScalar<float>();
19+
20+
#ifdef PYCPPAD_BUILD_CPPAD_CODEGEN_BINDINGS
21+
codegen::exposeCppADCGScalar<double>();
22+
#endif
23+
1624
}
1725
}

0 commit comments

Comments
 (0)