check transfer
0.1
Check data transfer for SDAccell OpenCL application
host_util
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
using namespace
std
;
22
23
//-----------------------------------------------------------------------------
24
25
except_info_t
except_info
(
const
char
*fmt, ...)
26
{
27
except_info_t
err;
28
va_list argptr;
29
va_start(argptr, fmt);
30
char
msg[256];
31
vsprintf(msg, fmt, argptr);
32
err.
info
= msg;
33
return
err;
34
}
35
36
//-----------------------------------------------------------------------------
std
STL namespace.
except_info
except_info_t except_info(const char *fmt,...)
Definition:
exceptinfo.cpp:25
_except_info_t::info
std::string info
Definition:
exceptinfo.h:8
_except_info_t
Definition:
exceptinfo.h:7
exceptinfo.h
Generated by
1.8.13