You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: vignettes/Rcpp-attributes.Rnw
+5-1Lines changed: 5 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -440,7 +440,11 @@ that code is not included more than once in a source file. You should
440
440
use an include guard and be sure to pick a unique name for the corresponding
441
441
\texttt{\#define}.
442
442
443
-
Also note the use of the \code{inline} keyword preceding the function. This isn't necessary for \code{sourceCpp} however if you are working on an R package then it's important to ensure that there are not multiple definitions of functions included from header files. Classes fully defined in header files automatically have inline semantics so don't require this treatment.
443
+
Also note the use of the \code{inline} keyword preceding the function. This
444
+
isn't necessary for \code{sourceCpp} however if you are working on an R package
445
+
then it's important to ensure that there are not multiple definitions of
446
+
functions included from header files. Classes fully defined in header files
447
+
automatically have inline semantics so don't require this treatment.
444
448
445
449
To use this code in a source file you'd just include
446
450
it based on it's relative path (being sure to use \texttt{"} as the
0 commit comments