mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-10-18 23:07:07 -05:00
Strip inline explanatory comments (comments are restricted to technical-debt markers, #endif, and namespace-close trailers) from HitLog.hpp, libSceConvertKeycode, libSceVoiceChat, libScePngEnc, and the new hunk in libScePlayGo; add the missing #endif trailer comment to HitLog.hpp's include guard. Rename the local helpers/params that didn't match the naming convention: log_soft -> logSoft and Readable -> readable (private free functions, camelCase), and snake_case arguments (user_id, request_id, memory_address, memory_size, output_info) to camelCase. NID export functions and pre-existing upstream code (libScePlayGo's existing snake_case parameters, PngEnc's vendored stb_image_write.h) are left untouched. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
18 lines
459 B
C++
18 lines
459 B
C++
#ifndef CORE_LIBS_HITLOG_HPP
|
|
#define CORE_LIBS_HITLOG_HPP
|
|
|
|
#include <atomic>
|
|
#include <cstdio>
|
|
|
|
#define APS5_HIT(tag, ...) \
|
|
do { \
|
|
static std::atomic<int> aps5HitCount{0}; \
|
|
if (aps5HitCount.fetch_add(1, std::memory_order_relaxed) < 3) { \
|
|
std::fprintf(stderr, "[" tag "] " __VA_ARGS__); \
|
|
std::fputc('\n', stderr); \
|
|
std::fflush(stderr); \
|
|
} \
|
|
} while (0)
|
|
|
|
#endif // CORE_LIBS_HITLOG_HPP
|