doc/API/html/_m_n_n_define_8h.html
| MNN 1.0 |
MNNDefine.h 文件参考
#include <assert.h>
#include <stdio.h>
|
| | #define | MNN_PRINT(format, ...) printf(format, ##__VA_ARGS__) | | | | #define | MNN_ERROR(format, ...) printf(format, ##__VA_ARGS__) | | | | #define | MNN_ASSERT(x) | | | | #define | FUNC_PRINT(x) MNN_PRINT(#x "=%d in %s, %d \n", x, __func__, __LINE__); | | | | #define | FUNC_PRINT_ALL(x, type) MNN_PRINT(#x "=" #type " %" #type " in %s, %d \n", x, __func__, __LINE__); | | | | #define | MNN_PUBLIC __attribute__((visibility("default"))) | | |
| #define FUNC_PRINT | ( | | x | ) | MNN_PRINT(#x "=%d in %s, %d \n", x, __func__, __LINE__); |
| #define FUNC_PRINT_ALL | ( | | x, | | | | | type | | | ) | | MNN_PRINT(#x "=" #type " %" #type " in %s, %d \n", x, __func__, __LINE__); |
| #define MNN_ASSERT | ( | | x | ) | |
值:
{ \
int res = (x); \
if (!res) { \
MNN_ERROR("Error for %s, %d\n", __FILE__, __LINE__); \
} \
}
| #define MNN_ERROR | ( | | format, | | | | | ... | | | ) | | printf(format, ##__VA_ARGS__) |
| #define MNN_PRINT | ( | | format, | | | | | ... | | | ) | | printf(format, ##__VA_ARGS__) |
| #define MNN_PUBLIC __attribute__((visibility("default"))) |