Skip to content

Commit

Permalink
accepts String
Browse files Browse the repository at this point in the history
  • Loading branch information
terasakisatoshi committed May 6, 2024
1 parent 6092c55 commit d34682f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cxxwrap1/callcxx.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ module CppHello
end

# Call greet and show the result
@show CppHello.greet()
@show CppHello.greet("Hello World")
4 changes: 2 additions & 2 deletions cxxwrap1/hello.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

#include "jlcxx/jlcxx.hpp"

std::string greet()
std::string greet(std::string msg)
{
return "hello, world";
return msg;
}

JLCXX_MODULE define_julia_module(jlcxx::Module& mod)
Expand Down

0 comments on commit d34682f

Please sign in to comment.