Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cpp11 #1920

Closed
wants to merge 6 commits into from
Closed

Cpp11 #1920

wants to merge 6 commits into from

Conversation

pachadotdev
Copy link
Contributor

Hi @hadley

These minimal changes allow the user to just write functions of the form

#include <cpp11.hpp>

using namespace cpp11;

[[cpp11::register]] int hello(int x) {
    return x + 1;
}

Immediately after using use_cpp11().

With this change the user can run devtools::load_all() and hello(1) will work. Otherwise it says pkgname_hello not found.

Semi-related to r-lib/cpp11#341

@pachadotdev pachadotdev deleted the cpp11 branch November 10, 2023 22:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant