From 083569f97dd4962d88780c8f17f1fbb2962c2eb0 Mon Sep 17 00:00:00 2001 From: Varun Agrawal Date: Wed, 10 Jun 2020 11:44:03 -0500 Subject: [PATCH] add full namespace global function wrapping --- wrap/GlobalFunction.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/wrap/GlobalFunction.h b/wrap/GlobalFunction.h index 9742733f7..099cefa70 100644 --- a/wrap/GlobalFunction.h +++ b/wrap/GlobalFunction.h @@ -54,7 +54,16 @@ struct GlobalFunction: public FullyOverloadedFunction { // function name in Cython pxd std::string pxdName() const { return "pxd_" + pyRename(name_); } // function name in Python pyx - std::string pyxName() const { return pyRename(name_); } + std::string pyxName() const { + std::string result = ""; + for(size_t i=0; i= 1) { + result += (overloads[0].namespaces_[i] + "_"); + } + } + result += pyRename(name_); + return result; + } // emit cython wrapper void emit_cython_pxd(FileWriter& pxdFile) const;