21#define LLOYAL_LOG_DEBUG(...) os_log(OS_LOG_DEFAULT, __VA_ARGS__)
22#define LLOYAL_LOG_INFO(...) os_log_info(OS_LOG_DEFAULT, __VA_ARGS__)
23#define LLOYAL_LOG_WARNING(...) os_log_error(OS_LOG_DEFAULT, __VA_ARGS__)
24#define LLOYAL_LOG_ERROR(...) os_log_fault(OS_LOG_DEFAULT, __VA_ARGS__)
25#elif defined(__ANDROID__)
26#include <android/log.h>
28#define LLOYAL_LOG_DEBUG(...) \
29 __android_log_print(ANDROID_LOG_DEBUG, "lloyal", __VA_ARGS__)
30#define LLOYAL_LOG_INFO(...) \
31 __android_log_print(ANDROID_LOG_INFO, "lloyal", __VA_ARGS__)
32#define LLOYAL_LOG_WARNING(...) \
33 __android_log_print(ANDROID_LOG_WARN, "lloyal", __VA_ARGS__)
34#define LLOYAL_LOG_ERROR(...) \
35 __android_log_print(ANDROID_LOG_ERROR, "lloyal", __VA_ARGS__)
39#define LLOYAL_LOG_DEBUG(...) printf(__VA_ARGS__)
40#define LLOYAL_LOG_INFO(...) printf(__VA_ARGS__)
41#define LLOYAL_LOG_WARNING(...) printf(__VA_ARGS__)
42#define LLOYAL_LOG_ERROR(...) printf(__VA_ARGS__)
47#define LLOYAL_LOG_DEBUG(...) \
50#define LLOYAL_LOG_INFO(...) \
53#define LLOYAL_LOG_WARNING(...) \
56#define LLOYAL_LOG_ERROR(...) \
67static constexpr int N_CTX = 2048;
static constexpr int N_CTX
static constexpr int N_BATCH_INIT
static constexpr int N_BATCH_PROCESS
JSON Schema to Grammar Converter (Header-Only)