where : value returned was inverted.
[scilab.git] / scilab / modules / types / src / cpp / macrofile.cpp
index dcfeb51..c0eb89f 100644 (file)
@@ -131,6 +131,7 @@ bool MacroFile::parse(void)
                         //types::Macro *pMacro = new types::Macro(m_stName, *pVarList, *pRetList, (SeqExp&)e.body_get());
 
                         pMacro->m_pMacro = new Macro(m_wstName, *pVarList, *pRetList, (SeqExp&)pFD->body_get(), m_wstModule);
+                        pMacro->setFirstLine(pFD->location_get().first_line);
                     }
                 }
             }
@@ -149,4 +150,14 @@ int MacroFile::getNbOutputArgument(void)
     return getMacro()->getNbOutputArgument();
 }
 
+Macro* MacroFile::getMacro(void)
+{
+    parse();
+    return m_pMacro;
+}
+
+void MacroFile::setFirstLine(int _iLine)
+{
+    getMacro()->setFirstLine(_iLine);
+}
 }