MCPcopy Create free account
hub / github.com/ThePhD/sol2 / my_function

Function my_function

examples/source/tutorials/writing_functions.cpp:4–8  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2#include <sol/sol.hpp>
3
4std::string my_function(int D_count, std::string original) {
5 // Create a string with the letter 'D' "D_count" times,
6 // append it to 'original'
7 return original + std::string(D_count, 'D');
8}
9
10int main() {
11

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected