00001 // Copyright (C) 2009-2010 Ferdinand Majerech 00002 // This file is part of MiniINI 00003 // For conditions of distribution and use, see copyright notice in LICENSE.txt 00004 00005 #include <cstdio> 00006 00007 #include "log.h" 00008 00009 namespace miniini_private 00010 { 00011 00012 void __void_puts(const char * const str) 00013 { 00014 puts(str); 00015 } 00016 00017 void(* __Log)(const char * const) = &__void_puts; 00018 00019 00020 } 00021 00022 void INILogCallback(void(* callback)(const char * const)) 00023 { 00024 miniini_private::__Log = callback; 00025 }