LMMC
Lamina Mathematic core
载入中...
搜索中...
未找到
diagnostic.h
浏览该文件的文档.
1
5#ifndef LMMC_DIAGNOSTIC_H
6#define LMMC_DIAGNOSTIC_H
7
8#include <stddef.h>
9
10#include "lmmc/numeric.h"
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
22
23typedef struct {
25 const char* operation;
26 const char* message;
27 size_t iteration;
31
33 const lmmc_diagnostic_t* diagnostic,
34 void* user_data
35);
36
42
45 const lmmc_diagnostic_sink_t* sink,
46 const lmmc_diagnostic_t* diagnostic
47);
48
49#ifdef __cplusplus
50}
51#endif
52
53#endif
double lmmc_real_t
Public and internal LMMC real type.
void lmmc_diagnostic_emit(const lmmc_diagnostic_sink_t *sink, const lmmc_diagnostic_t *diagnostic)
通过调用方持有的接收器发送一个诊断事件;空接收器直接完成.
lmmc_diagnostic_callback_t callback
lmmc_diagnostic_level_t level
void(*) lmmc_diagnostic_callback_t(const lmmc_diagnostic_t *diagnostic, void *user_data)
lmmc_diagnostic_level_t minimum_level
const char * operation
lmmc_diagnostic_level_t
@ LMMC_DIAGNOSTIC_INFO
@ LMMC_DIAGNOSTIC_ERROR
@ LMMC_DIAGNOSTIC_TRACE
@ LMMC_DIAGNOSTIC_WARNING
const lmmc_real_t * values
数值标量、特殊函数和 FFT 公共接口。