Skip to content

Commit

Permalink
Minor tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
fwsGonzo committed Sep 13, 2024
1 parent 171447b commit 584f820
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion program/cpp/api/string.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@
union String {
constexpr String() {} // DON'T TOUCH
String(std::string_view value);
String &operator =(std::string_view value);
template <size_t N>
String(const char (&value)[N]);

String &operator =(std::string_view value);

// String operations
void append(const String &value);
void append(std::string_view value);
Expand Down
2 changes: 1 addition & 1 deletion src/cpp/script_cpp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ Variant CPPScript::_get_rpc_config() const {
CPPScript::CPPScript() {
source_code = R"C0D3(#include "api.hpp"
extern "C" Variant public_function(Variant arg) {
extern "C" Variant public_function(String arg) {
print("Arguments: ", arg);
return "Hello from the other side";
}
Expand Down

0 comments on commit 584f820

Please sign in to comment.