Cloudy
Spectral Synthesis Code for Astrophysics
Loading...
Searching...
No Matches
physconst.cpp File Reference
#include "cddefines.h"
#include "physconst.h"
#include "physconst_template.h"
Include dependency graph for physconst.cpp:

Macros

#define NEW_CONSTANT(NAME, VALUE)
 

Functions

static int register_physconst (const char *name, double value)
 
void prt_phys_constants (FILE *io)
 

Macro Definition Documentation

◆ NEW_CONSTANT

#define NEW_CONSTANT ( NAME,
VALUE )
Value:
static int UNUSED physconst_##NAME = register_physconst(#NAME,VALUE)
#define UNUSED
Definition cpu.h:9
static int register_physconst(const char *name, double value)
Definition physconst.cpp:16

Function Documentation

◆ prt_phys_constants()

void prt_phys_constants ( FILE * io)

References Singleton< t_physconst >::Inst(), and t_physconst::prt_constants().

Referenced by prt_constants().

Here is the call graph for this function:

◆ register_physconst()

static int register_physconst ( const char * name,
double value )
static

References t_physconst::add_constant(), and Singleton< t_physconst >::Inst().

Here is the call graph for this function: