blob: e8cf831fb3624458f0619e3fa175552cdcc09b06 [file] [log] [blame]
Wenzel Jakob17cdb062016-03-10 13:24:10 +01001/*
2 example/issues.cpp -- collection of testcases for miscellaneous issues
3
4 Copyright (c) 2015 Wenzel Jakob <wenzel@inf.ethz.ch>
5
6 All rights reserved. Use of this source code is governed by a
7 BSD-style license that can be found in the LICENSE file.
8*/
9
10#include "example.h"
11
12
13void init_issues(py::module &m) {
14 py::module m2 = m.def_submodule("issues");
15
16 // #137: const char* isn't handled properly
17 m2.def("print_cchar", [](const char *string) { std::cout << string << std::endl; });
18}