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__)