NESe (pronounced "Nessie") is a NES emulator based on the e6502 emulator, also written in C with a focus on speed and portability for use on embedded platforms, especially ARM.
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

20 lignes
411B

  1. #include <stdio.h>
  2. #ifdef DEBUG
  3. #define LOG(l, f, ...) fprintf(stderr, l ": " DEBUG ": " f "\n" __VA_OPT__(,) __VA_ARGS__)
  4. #else // !DEBUG
  5. #define LOG(...)
  6. #endif // DEBUG
  7. #define LOGE(f, ...) LOG("E", f, __VA_ARGS__)
  8. #define LOGW(f, ...) LOG("W", f, __VA_ARGS__)
  9. #define LOGI(f, ...) LOG("I", f, __VA_ARGS__)
  10. #define LOGD(f, ...) LOG("D", f, __VA_ARGS__)
  11. #define LOGV(f, ...) LOG("V", f, __VA_ARGS__)