mirror of
https://github.com/GLEGram/GLEGram-iOS.git
synced 2026-04-27 13:27:18 +02:00
4647310322
Based on Swiftgram 12.5 (Telegram iOS 12.5). All GLEGram features ported and organized in GLEGram/ folder. Features: Ghost Mode, Saved Deleted Messages, Content Protection Bypass, Font Replacement, Fake Profile, Chat Export, Plugin System, and more. See CHANGELOG_12.5.md for full details.
28 lines
638 B
C
Executable File
28 lines
638 B
C
Executable File
#include "platform_log.h"
|
|
#include <stdarg.h>
|
|
#include <stdlib.h>
|
|
#include <stdio.h>
|
|
|
|
#define LOG_VPRINTF(priority) printf("(" priority ") %s: ", tag); \
|
|
va_list arg_ptr; \
|
|
va_start(arg_ptr, fmt); \
|
|
vprintf(fmt, arg_ptr); \
|
|
va_end(arg_ptr); \
|
|
printf("\n");
|
|
|
|
void _debug_log_v(const char *tag, const char *fmt, ...) {
|
|
LOG_VPRINTF("VERBOSE");
|
|
}
|
|
|
|
void _debug_log_d(const char *tag, const char *fmt, ...) {
|
|
LOG_VPRINTF("DEBUG");
|
|
}
|
|
|
|
void _debug_log_w(const char *tag, const char *fmt, ...) {
|
|
LOG_VPRINTF("WARN");
|
|
}
|
|
|
|
void _debug_log_e(const char *tag, const char *fmt, ...) {
|
|
LOG_VPRINTF("ERROR");
|
|
}
|