2021-08-13 03:20:45 -07:00
|
|
|
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-│
|
|
|
|
│vi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :vi│
|
|
|
|
╞══════════════════════════════════════════════════════════════════════════════╡
|
|
|
|
│ Python 3 │
|
|
|
|
│ https://docs.python.org/3/license.html │
|
|
|
|
╚─────────────────────────────────────────────────────────────────────────────*/
|
2021-08-12 00:42:14 -07:00
|
|
|
#include "third_party/python/Include/pylifecycle.h"
|
2021-08-10 10:26:13 -07:00
|
|
|
/* clang-format off */
|
2021-08-08 09:38:33 +05:30
|
|
|
|
|
|
|
#ifndef COMPILER
|
2021-09-27 22:58:51 -07:00
|
|
|
#ifdef __llvm__
|
|
|
|
#define COMPILER "[LLVM " __VERSION__ "]"
|
|
|
|
#elif defined(__GNUC__)
|
|
|
|
#define COMPILER "[GCC " __VERSION__ "]"
|
|
|
|
#elif defined(__cplusplus)
|
2021-08-08 09:38:33 +05:30
|
|
|
#define COMPILER "[C++]"
|
|
|
|
#else
|
|
|
|
#define COMPILER "[C]"
|
|
|
|
#endif
|
|
|
|
#endif /* !COMPILER */
|
|
|
|
|
|
|
|
const char *
|
|
|
|
Py_GetCompiler(void)
|
|
|
|
{
|
|
|
|
return COMPILER;
|
|
|
|
}
|