diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2009-01-03 22:51:28 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2009-01-03 22:56:17 +0000 |
commit | 388ae177e4100698289819429fa1f8e6958d1c60 (patch) | |
tree | e97f0c4bb3ee5d9ac9e5e095a26582f8e888f748 /boilerplate/cairo-boilerplate-beos.cpp | |
parent | 5f816ccd25d1cd303fc1e9e44e80c1207b2a424a (diff) |
[boilerplate] Remove CAIRO_BOILERPLATE_LOG()
The variadic macro is only used within boilerplate/ so replace it with a
simple, and portable, call to fprintf.
Diffstat (limited to 'boilerplate/cairo-boilerplate-beos.cpp')
-rw-r--r-- | boilerplate/cairo-boilerplate-beos.cpp | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/boilerplate/cairo-boilerplate-beos.cpp b/boilerplate/cairo-boilerplate-beos.cpp index 2a84d1b3..497d9277 100644 --- a/boilerplate/cairo-boilerplate-beos.cpp +++ b/boilerplate/cairo-boilerplate-beos.cpp @@ -38,10 +38,6 @@ * * ***** END LICENSE BLOCK ***** */ -// BeOS's C++ compiler does not support varargs in macros -// So, define CAIRO_BOILERPLATE_LOG here -#define CAIRO_BOILERPLATE_LOG cairo_beos_boilerplate_log - extern "C" { #include "cairo-boilerplate.h" } @@ -57,15 +53,6 @@ extern "C" { #include <View.h> #include <Bitmap.h> -static int cairo_beos_boilerplate_log(const char* format, ...) { - va_list args; - int rv; - va_start(args, format); - rv = vfprintf(stderr, format, args); - va_end(args); - return rv; -} - class CairoTestWindow : public BWindow { public: @@ -142,18 +129,18 @@ AppRunner::AppRunner() sem_id initsem = create_sem(0, "Cairo BApplication init"); if (initsem < B_OK) { - CAIRO_BOILERPLATE_LOG("Error creating BeOS initialization semaphore\n"); + fprintf (stderr, "Error creating BeOS initialization semaphore\n"); return; } thread_id tid = spawn_thread(nsBeOSApp::Main, "Cairo/BeOS test", B_NORMAL_PRIORITY, (void *)initsem); if (tid < B_OK || B_OK != resume_thread(tid)) { - CAIRO_BOILERPLATE_LOG("Error spawning thread\n"); + fprintf (stderr, "Error spawning thread\n"); return; } if (B_OK != acquire_sem(initsem)) { - CAIRO_BOILERPLATE_LOG("Error acquiring semaphore\n"); + fprintf (stderr, "Error acquiring semaphore\n"); return; } |