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.
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

20 строки
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__)