Logo Search packages:      
Sourcecode: csound version File versions  Download package

PUBLIC const char* csoundGetFirstMessage ( CSOUND csound  ) 

Returns the first message from the buffer.

Definition at line 3063 of file csound.c.

References csoundGetFirstMessage().

Referenced by csoundGetFirstMessage().

  {
      csMsgBuffer *pp = (csMsgBuffer*) csoundGetHostData(csound);
      char        *msg = NULL;

      if (pp && pp->msgCnt) {
        csoundLockMutex(pp->mutex_);
        if (pp->firstMsg)
          msg = &(pp->firstMsg->s[0]);
        csoundUnlockMutex(pp->mutex_);
      }
      return msg;
  }


Generated by  Doxygen 1.6.0   Back to index