summaryrefslogtreecommitdiff
path: root/src/tests/print.cpp
blob: 0f9be6b2793fc142e94bda0d153787aa55630192 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <bu/sio.h>

int main()
{
	Bu::print("hello there %1!\n").arg("Bob");

	Bu::println("This is %1 crazy, like %2 times over!").
		arg("totally").arg( 47.2 );
	Bu::println("This is unsubstituted?");

	Bu::serr << "This is error text." << Bu::serr.nl;
	Bu::println( Bu::serr, "This is also error text?");

	return 0;
}