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