From c068f22329d5cc722622a2183bbb22eef2093df7 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Mon, 24 Aug 2026 11:16:07 +0200 Subject: initial import --- tool_src/QvLib/QvBasic.h | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 tool_src/QvLib/QvBasic.h (limited to 'tool_src/QvLib/QvBasic.h') diff --git a/tool_src/QvLib/QvBasic.h b/tool_src/QvLib/QvBasic.h new file mode 100644 index 0000000..f54c906 --- /dev/null +++ b/tool_src/QvLib/QvBasic.h @@ -0,0 +1,46 @@ +#ifndef _QV_BASIC_ +#define _QV_BASIC_ + +#ifdef WIN32 +typedef unsigned long u_long; +#define M_PI 3.1415926536 +#define M_PI_4 (M_PI/4.0) +#endif + +#include +#ifndef WIN32 +//#include +#include + +#else +#include +#endif /* WIN32 */ +#include + +#ifndef FALSE +# define FALSE 0 +# define TRUE 1 +#endif + +typedef int QvBool; + +// This uses the preprocessor to quote a string +#if defined(__STDC__) || defined(__ANSI_CPP__) /* ANSI C */ +# define QV__QUOTE(str) #str +#else /* Non-ANSI C */ +#ifdef WIN32 +# define QV__QUOTE(str) #str +#else +# define QV__QUOTE(str) "str" +#endif +#endif + +// This uses the preprocessor to concatenate two strings +#if defined(__STDC__) || defined(__ANSI_CPP__) /* ANSI C */ +# define QV__CONCAT(str1, str2) str1##str2 +#else /* Non-ANSI C */ +# define QV__CONCAT(str1, str2) str1/**/str2 +#endif + +#endif /* _QV_BASIC_ */ + -- cgit v1.2.3