Skip to content
This repository has been archived by the owner on Jan 13, 2024. It is now read-only.

Commit

Permalink
changes for mac
Browse files Browse the repository at this point in the history
  • Loading branch information
sdpython committed Nov 23, 2018
1 parent d063dab commit b87000f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 18 deletions.
24 changes: 8 additions & 16 deletions src/cpyquickhelper/io/stdchelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,22 +81,14 @@ static int stdchelper_module_clear(PyObject *m) {
}

static PyMethodDef fonctions [] = {
{"begin_capture", begin_capture, METH_VARARGS, R"pbdoc(
Starts capturing the standard output.
Signature: *def begin_capture():*.
)pbdoc"},
{"end_capture", end_capture, METH_VARARGS, R"pbdoc(
Stops capturing the standard output.
Signature: *def end_capture():*.
)pbdoc"},
{"get_capture", get_capture, METH_VARARGS, R"pbdoc(
Gets the captured output.
Signature: *def get_capture() -> (str, str):*.
)pbdoc"},
{"cprint", cprint, METH_VARARGS, R"pbdoc(
Displays a string on the standard output in C++.
Signature: *def cprint(*args):*.
)pbdoc"},
{"begin_capture", begin_capture, METH_VARARGS,
"Starts capturing the standard output. Signature: *def begin_capture():*."},
{"end_capture", end_capture, METH_VARARGS,
"Stops capturing the standard output. Signature: *def end_capture():*."},
{"get_capture", get_capture, METH_VARARGS,
"Gets the captured output. Signature: *def get_capture() -> (str, str):*."},
{"cprint", cprint, METH_VARARGS,
"Displays a string on the standard output in C++. Signature: *def cprint(*args):*."},
{NULL, NULL}
} ;

Expand Down
4 changes: 2 additions & 2 deletions src/cpyquickhelper/numbers/weighted_number_python.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ PYBIND11_MODULE(weighted_number, m) {
m.doc() = "Implements operations on weighted numbers.";

py::class_<WeightedDouble>(m, "WeightedDouble",
#ifdef __APPLE__
#if defined(__APPLE__)
"Implements a weighted double used to speed up computation with aggregation."
#else
R"pbdoc(
Expand Down Expand Up @@ -51,7 +51,7 @@ It contains two attributes:
;

py::class_<WeightedFloat>(m, "WeightedFloat",
#ifdef __APPLE__
#if defined(__APPLE__)
"Implements a weighted float used to speed up computation with aggregation."
#else
R"pbdoc(
Expand Down

0 comments on commit b87000f

Please sign in to comment.