test-libwbfs.c 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /***************************************************************************
  2. * *
  3. * Copyright (c) 2009-2010 by Dirk Clemens <wiimm@wiimm.de> *
  4. * *
  5. * This program is free software; you can redistribute it and/or modify *
  6. * it under the terms of the GNU General Public License as published by *
  7. * the Free Software Foundation; either version 2 of the License, or *
  8. * (at your option) any later version. *
  9. * *
  10. * This program is distributed in the hope that it will be useful, *
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of *
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
  13. * GNU General Public License for more details. *
  14. * *
  15. * See file gpl-2.0.txt or http://www.gnu.org/licenses/gpl-2.0.txt *
  16. * *
  17. ***************************************************************************/
  18. #define _GNU_SOURCE 1
  19. #include "libwbfs.h"
  20. #include "wiidisc.h"
  21. //
  22. ///////////////////////////////////////////////////////////////////////////////
  23. ///////////////////////////////////////////////////////////////////////////////
  24. int main ( int argc, char ** argv )
  25. {
  26. printf("hello world\n");
  27. #if 1 // test warnings
  28. wbfs_warning(0);
  29. wbfs_warning("%d Warning",1);
  30. wbfs_error("Error");
  31. OUT_OF_MEMORY;
  32. wbfs_fatal("should not reached");
  33. #endif
  34. return 0;
  35. }