-
Notifications
You must be signed in to change notification settings - Fork 0
/
tcutils.h
40 lines (34 loc) · 1.03 KB
/
tcutils.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifdef WIN32
#include <direct.h>
#define getCurrentWorkingDir _getcwd
#else
#include <unistd.h>
#define getCurrentWorkingDir getcwd
#endif
#define TCPATH "TCPATH"
#define TC3_HOME "TC3_HOME"
#ifdef WIN32
#define TEMP "TEMP"
#else
#define TEMP "TMPDIR"
#endif
#ifdef WIN32
#define SLASH "\\"
#else
#define SLASH "/"
#endif
/************************************************
* Get path from the values of
* Thermo-Calc environment variables
* TC3_HOME (Thermo-Calc 3.0)
* TCPATH Older versions and fallback
************************************************/
void getThermoCalcEnvironmentPath(char* pathBuffer);
//------------------------------------------------------------------------------
/************************************************
* Get path to temp directory
* If it can't find it - default
* to current working directory
************************************************/
void getTempEnvironmentPath(char* pathBuffer);
//------------------------------------------------------------------------------