MCPcopy Create free account
hub / github.com/pybind/pybind11 / test_function

Method test_function

tests/test_enum.cpp:44–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42 enum EMode { EFirstMode = 1, ESecondMode };
43
44 static EMode test_function(EMode mode) { return mode; }
45 };
46 py::class_<ClassWithUnscopedEnum> exenum_class(m, "ClassWithUnscopedEnum");
47 exenum_class.def_static("test_function", &ClassWithUnscopedEnum::test_function);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected