lib/mnit_linux: replace calls to LOGI/LOGW with fprintf
authorAlexis Laferrière <alexis.laf@xymus.net>
Tue, 11 Mar 2014 13:48:55 +0000 (09:48 -0400)
committerAlexis Laferrière <alexis.laf@xymus.net>
Wed, 12 Mar 2014 20:22:56 +0000 (16:22 -0400)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

lib/mnit_linux/linux_opengles1.nit

index 93058fc..00a037f 100644 (file)
@@ -25,15 +25,6 @@ import mnit # for
 
 import sdl
 
-in "C Header" `{
-       #define LOGW(...) ((void)fprintf(stderr, "# warn: %s", __VA_ARGS__))
-       #ifdef DEBUG
-               #define LOGI(...) ((void)fprintf(stderr, "# info: %s", __VA_ARGS__))
-       #else
-               #define LOGI(...) (void)0
-       #endif
-`}
-
 in "C" `{
        NativeWindowType mnit_window;
        EGLNativeDisplayType mnit_native_display;
@@ -102,7 +93,7 @@ redef extern Opengles1Image
 
                sdl_image = IMG_Load( String_to_cstring( path ) );
                if ( !sdl_image ) {
-                       LOGW( "SDL failed to load image <%s>: %s\n", String_to_cstring( path ), IMG_GetError() );
+                       fprintf(stderr, "SDL failed to load image <%s>: %s\n", String_to_cstring(path), IMG_GetError());
                        return NULL;
                } else {
                        opengles_image = mnit_opengles_load_image( sdl_image->pixels, sdl_image->w, sdl_image->h, sdl_image->format->Amask );