1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
/* * Created by yuuta on 7/19/22. */ #ifndef LIBAC_CONFIG_H #define LIBAC_CONFIG_H #include "libac.h" #include <json-c/json_tokener.h> #include <stdio.h> extern _Thread_local struct libac_config *config; #define AC_CHECK_INIT do { if (!config) return AC_E_NOT_INITIALIZED; } while(0) #endif /* LIBAC_CONFIG_H */