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

Function callback

tests/config_tests/function_pointers/source/retrieval.cpp:40–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38 }
39
40 int callback(one_arg_type f) {
41 return f(magic_value) + 1;
42 }
43} // namespace sol2_tests_config_function_pointers_retrieval
44
45TEST_CASE("config/function_pointers/get", "retrieving a function pointer type can round trip, even if we lose safety in other contexts") {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected