void CUCMDetail::OnUcmdAdd() { #ifdef UNICAS_ON char err_msg[100]; int rc; rc = uc_add((char *) LPCSTR(m_broker), err_msg); #endif }
/** * state math * * Handles math operations */ void *uc_math_state(void) { switch(uc_current_character()) { case 'A': uc_add(); return (void*)&uc_main_state; case 'S': uc_subtract(); return (void*)&uc_main_state; case 'T': uc_multiply(); return (void*)&uc_main_state; case 'D': uc_divide(); return (void*)&uc_main_state; case 'M': uc_modulus(); return (void*)&uc_main_state; default: return uc_throw_error(UC_CHAR_NOT_FOUND, "main -> math"); } }