| Cantera 3.0.0

Loading...
Searching...
No Matches
clib_defs.h
Go to the documentation of this file.
1/**
2 * @file clib_defs.h
3 */
4
5// This file is part of Cantera. See License.txt in the top-level directory or
6// at https://cantera.org/license.txt for license and copyright information.
7
8#ifndef CTC_DEFS_H
9#define CTC_DEFS_H
10
11#include "cantera/base/config.h"
12#include <stdlib.h>
13
14// Legacy attribute applied to clib functions. Currently, used only to identify
15// functions that should be considered by the 'sourcegen' parser for inclusion in the
16// C# interface.
17#define CANTERA_CAPI
18
19// Values returned for error conditions
20#ifndef ERR
21# define ERR -999
22#endif
23
24#ifndef DERR
25# define DERR -999.999
26#endif
27
28// Used by external logger
29 enum LogLevel { INFO, WARN , ERROR };
30
31//! Represents a callback that is invoked to produce log output.
32 typedef void
33 (*LogCallback)(enum LogLevel logLevel, const char* category, const char* message);
34
35#endif
LogCallback
void(* LogCallback)(enum LogLevel logLevel, const char *category, const char *message)
Represents a callback that is invoked to produce log output.
Definition clib_defs.h:33