FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
matplotlib/src/mplutils.cpp at master · BrenBarn/matplotlib · GitHub
BrenBarn
/
matplotlib
Public
forked from
matplotlib/matplotlib
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
matplotlib
/
src
/
mplutils.cpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
34 lines (27 loc) · 584 Bytes
Breadcrumbs
matplotlib
/
src
/
mplutils.cpp
Copy path
File metadata and controls
34 lines (27 loc) · 584 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
-*- mode: c++; c-basic-offset: 4 -*-
*/
#
include
<
iostream
>
#
include
<
cstdarg
>
#
include
<
cstdio
>
#
include
"
mplutils.h
"
void
_VERBOSE
(
const
std::string& s)
{
#
ifdef
VERBOSE
std::cout << s << std::endl;
#
endif
}
Printf::Printf
(
const
char
*fmt, ...)
: buffer(
new
char
[
1024
])
//
some reasonably large number
{
va_list ap;
va_start
(ap, fmt);
vsprintf
(buffer, fmt, ap);
va_end
(ap);
//
look ma - I rememberd it this time
}
Printf::~Printf
()
{
delete []
buffer;
}
std::ostream &
operator
<<(std::ostream &o,
const
Printf &p)
{
return
o << p.
buffer
;
}
Back
|
FazBrowse Home
|
New Git URL