File: variadic.hpp

package info (click to toggle)
higan 094-5
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 9,780 kB
  • ctags: 15,643
  • sloc: cpp: 103,963; ansic: 659; makefile: 531; sh: 25
file content (20 lines) | stat: -rwxr-xr-x 408 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifdef NALL_STRING_INTERNAL_HPP

namespace nall {

void sprint(string& output) {
}

template<typename T, typename... Args>
void sprint(string& output, const T& value, Args&&... args) {
  output._append(make_string(value));
  sprint(output, std::forward<Args>(args)...);
}

template<typename... Args> void print(Args&&... args) {
  printf("%s", (const char*)string(std::forward<Args>(args)...));
}

}

#endif