Sync with 5.4.0
[deliverable/titan.core.git] / mctr2 / mctr / MctrError.cc
CommitLineData
970ed795 1///////////////////////////////////////////////////////////////////////////////
3abe9331 2// Copyright (c) 2000-2015 Ericsson Telecom AB
970ed795
EL
3// All rights reserved. This program and the accompanying materials
4// are made available under the terms of the Eclipse Public License v1.0
5// which accompanies this distribution, and is available at
6// http://www.eclipse.org/legal/epl-v10.html
7///////////////////////////////////////////////////////////////////////////////
8#include <stdarg.h>
9
10#include "../../common/memory.h"
11#include "../../core/Error.hh"
12#include "MainController.h"
13
14void TTCN_error(const char *fmt, ...)
15{
16 char *str = mcopystr("Error during encoding/decoding of a message: ");
17 va_list ap;
18 va_start(ap, fmt);
19 str = mputprintf_va_list(str, fmt, ap);
20 va_end(ap);
21 mctr::MainController::error("%s", str);
22 Free(str);
23 throw TC_Error();
24}
This page took 0.025965 seconds and 5 git commands to generate.