浏览该文件的文档. 15 #if defined(__APPLE__) 16 #include "TargetConditionals.h" 18 #define MNN_BUILD_FOR_IOS 23 #include <android/log.h> 24 #define MNN_ERROR(format, ...) __android_log_print(ANDROID_LOG_ERROR, "MNNJNI", format, ##__VA_ARGS__) 25 #define MNN_PRINT(format, ...) __android_log_print(ANDROID_LOG_INFO, "MNNJNI", format, ##__VA_ARGS__) 27 #define MNN_PRINT(format, ...) printf(format, ##__VA_ARGS__) 28 #define MNN_ERROR(format, ...) printf(format, ##__VA_ARGS__) 32 #define MNN_ASSERT(x) \ 36 MNN_ERROR("Error for %s, %d\n", __FILE__, __LINE__); \ 41 #define MNN_ASSERT(x) \ 45 MNN_ERROR("Error for %s, %d\n", __FILE__, __LINE__); \ 50 #define FUNC_PRINT(x) MNN_PRINT(#x "=%d in %s, %d \n", x, __func__, __LINE__); 51 #define FUNC_PRINT_ALL(x, type) MNN_PRINT(#x "=" #type " %" #type " in %s, %d \n", x, __func__, __LINE__); 53 #define MNN_PUBLIC __attribute__((visibility("default")))