Skip to content

Commit 99d872d

Browse files
committed
Add note about CPP_PARTIAL
1 parent 8725e8d commit 99d872d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

inst/include/cpp11/declarations.hpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
#include <string>
55
#include <vector>
66

7+
// Davis: From what I can tell, you'd only ever define this if you need to include
8+
// `declarations.hpp` manually in a file, i.e. to possibly use `BEGIN_CPP11` with a
9+
// custom `END_CPP11`, as textshaping does do. Otherwise, `declarations.hpp` is included
10+
// in `code.cpp` and should contain all of the cpp11 type definitions that the generated
11+
// function signatures need to link against.
712
#ifndef CPP11_PARTIAL
813
#include "cpp11.hpp"
914
namespace writable = ::cpp11::writable;

0 commit comments

Comments
 (0)