src/NFfunction/muParser/muParserBytecode.cpp
//---------------------------------------------------------------------------
/** \brief Add function to bytecode. 

      \param a_iArgc Number of arguments, negative numbers indicate multiarg functions.
      \param a_pFun Pointer to function callback.
  */
\brief Add function to bytecode.
\param a_iArgc Number of arguments, negative numbers indicate multiarg functions.
\param a_pFun Pointer to function callback.
\ brief Add function to bytecode . \ param a_iArgc Number of arguments negative numbers indicate multiarg functions . \ param a_pFun Pointer to function callback .
void ParserByteCode::AddFun(void *a_pFun, int a_iArgc)
  {
    if (a_iArgc>=0)
    {
      m_iStackPos = m_iStackPos - a_iArgc + 1; 
    }
    else
    {
      m_iStackPos = m_iStackPos + a_iArgc + 1; 
    }
    m_vBase.push_back(m_iStackPos);
    m_vBase.push_back(cmFUNC);
	  m_vBase.push_back(a_iArgc);
    StorePtr(a_pFun);
  }
void ParserByteCode :: AddFun ( void * a_pFun , int a_iArgc ) { if ( a_iArgc >= 0 ) { m_iStackPos = m_iStackPos - a_iArgc + 1 ; } else { m_iStackPos = m_iStackPos + a_iArgc + 1 ; } m_vBase . push_back ( m_iStackPos ) ; m_vBase . push_back ( cmFUNC ) ; m_vBase . push_back ( a_iArgc ) ; StorePtr ( a_pFun ) ; }
\brief Add function to bytecode.
\ brief Add function to bytecode .