Revision e038765d17109d6f1e4226e88809a123aa3a4a07 authored by Steven Johnson on 18 April 2022, 18:20:51 UTC, committed by Steven Johnson on 18 April 2022, 18:20:51 UTC
Technically, we should check the return code of sprintf() for failure conditions. This is a minimal fix designed to quietly ensure that encoding errors aren't overlooked.

(Since our "C" output actually requires C++11 at this point, I was tempted to replace it with `ostringstream`, but decided to avoid bringing that in...)
1 parent 60a909f
Raw File
PyExternFuncArgument.h
#ifndef HALIDE_PYTHON_BINDINGS_PYEXTERNFUNCARGUMENT_H
#define HALIDE_PYTHON_BINDINGS_PYEXTERNFUNCARGUMENT_H

#include "PyHalide.h"

namespace Halide {
namespace PythonBindings {

void define_extern_func_argument(py::module &m);

}  // namespace PythonBindings
}  // namespace Halide

#endif  // HALIDE_PYTHON_BINDINGS_PYEXTERNFUNCARGUMENT_H
back to top