13 lines
296 B
C++
13 lines
296 B
C++
|
|
#include <pybind11/pybind11.h>
|
||
|
|
|
||
|
|
namespace py = pybind11;
|
||
|
|
|
||
|
|
static const char* kServerIp = "stcp.shelingxingqiu.com";
|
||
|
|
|
||
|
|
PYBIND11_MODULE(archery_netcore, m) {
|
||
|
|
m.doc() = "Archery net core (native, pybind11).";
|
||
|
|
m.def("server_ip", []() {
|
||
|
|
return py::str(kServerIp);
|
||
|
|
});
|
||
|
|
}
|