From ce767762e929bdb7233c31d38d4e4d521b9c7117 Mon Sep 17 00:00:00 2001 From: Frank Dellaert Date: Sun, 24 Jun 2012 14:32:06 +0000 Subject: [PATCH] Better documentation for MATLAB methods --- wrap/Method.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wrap/Method.cpp b/wrap/Method.cpp index aeddca2e1..7686ecd2d 100644 --- a/wrap/Method.cpp +++ b/wrap/Method.cpp @@ -34,15 +34,15 @@ void Method::matlab_mfile(const string& classPath) const { // generate code string returnType = returnVal.matlab_returnType(); + file.oss << "% " << returnType << " = obj." << name << "(" << args.names() << ")" << endl; file.oss << "function " << returnType << " = " << name << "(obj"; if (args.size()) file.oss << "," << args.names(); file.oss << ")" << endl; - file.oss << "% usage: obj." << name << "(" << args.names() << ")" << endl; file.oss << " error('need to compile " << name << ".cpp');" << endl; file.oss << "end" << endl; // close file - file.emit(true); + file.emit(false); } /* ************************************************************************* */