SIMULINK_A7DAC
1.0
Control of A7_DAC device
src
work
exceptinfo.cpp
Go to the documentation of this file.
1
2
#include "
exceptinfo.h
"
3
4
#include <stdio.h>
5
#include <stdarg.h>
6
#include <stdlib.h>
7
#include <string.h>
8
#ifdef __linux__
9
#include <unistd.h>
10
#include <pthread.h>
11
#include <sys/time.h>
12
#include <sys/mman.h>
13
#include <getopt.h>
14
#endif
15
16
#include <fcntl.h>
17
#include <signal.h>
18
19
20
//-----------------------------------------------------------------------------
21
22
23
24
//-----------------------------------------------------------------------------
25
26
except_info_t
except_info
(
const
BRDCHAR *fmt, ...)
27
{
28
except_info_t
err;
29
va_list argptr;
30
va_start(argptr, fmt);
31
32
BRDC_vsprintf( err.
msg
, fmt, argptr);
33
34
return
err;
35
}
36
37
//-----------------------------------------------------------------------------
_except_info_t::msg
BRDCHAR msg[256]
Definition:
exceptinfo.h:9
_except_info_t
Definition:
exceptinfo.h:8
except_info
except_info_t except_info(const BRDCHAR *fmt,...)
Definition:
exceptinfo.cpp:26
exceptinfo.h
Generated by
1.8.14