@@ -2103,7 +2103,7 @@ namespace attributes {
21032103 ostr () << " static const R_CallMethodDef CallEntries[] = {" << std::endl;
21042104 for (std::size_t i=0 ;i<routineNames.size (); i++) {
21052105 ostr () << " {\" " << routineNames[i] << " \" , " <<
2106- " (DL_FUNC) &" << routineNames[i] << " , " <<
2106+ " (DL_FUNC) (RCPP_FUNC) &" << routineNames[i] << " , " <<
21072107 routineArgs[i] << " }," << std::endl;
21082108 }
21092109 if (callEntries.size () > 0 ) {
@@ -2148,7 +2148,7 @@ namespace attributes {
21482148 std::string indentStr (indent, ' ' );
21492149 ostr << indentStr << " R_RegisterCCallable(\" " << package () << " \" , "
21502150 << " \" " << packageCppPrefix () << " _" << exportedName << " \" , "
2151- << " (DL_FUNC)" << packageCppPrefix () << " _" << name << " );" ;
2151+ << " (DL_FUNC) (RCPP_FUNC) " << packageCppPrefix () << " _" << name << " );" ;
21522152 return ostr.str (); // #nocov end
21532153 }
21542154
@@ -2221,7 +2221,7 @@ namespace attributes {
22212221
22222222 std::string ptrName = " p_" + validate;
22232223 ostr () << " static " << fnType << " " << ptrName << " = "
2224- << " (" << fnType << " )" << std::endl
2224+ << " (" << fnType << " ) (RCPP_FUNC) " << std::endl
22252225 << " "
22262226 << getCCallable (exportValidationFunctionRegisteredName ())
22272227 << " ;" << std::endl;
@@ -2279,7 +2279,7 @@ namespace attributes {
22792279 << " (\" " << function.signature () << " \" );"
22802280 << std::endl;
22812281 ostr () << " " << ptrName << " = "
2282- << " (" << fnType << " )"
2282+ << " (" << fnType << " ) (RCPP_FUNC) "
22832283 << getCCallable (packageCppPrefix () + " _" + function.name ()) << " ;"
22842284 << std::endl;
22852285 ostr () << " }" << std::endl;
0 commit comments