source: cpp/frams/config/sdk-build-config.h @ 1280

Last change on this file since 1280 was 1279, checked in by Maciej Komosinski, 15 months ago

Configuring floating point exception handling, follow-up to r1275

  • Property svn:eol-style set to native
File size: 1.3 KB
Line 
1// This file is a part of Framsticks SDK.  http://www.framsticks.com/
2// Copyright (C) 1999-2023  Maciej Komosinski and Szymon Ulatowski.
3// See LICENSE.txt for details.
4
5#ifndef _SDK_BUILD_CONFIG_H_
6#define _SDK_BUILD_CONFIG_H_
7
8#include "version.h"
9
10#ifdef __APPLE__
11  #define MACOS
12#elif defined __linux || defined __CYGWIN__ || defined __MINGW32__
13  #define LINUX
14#endif
15
16#ifdef __MINGW32__
17  #undef _WIN32 //assume that someone using MinGW to compile this SDK wants to pretend their system is Linux, not Windows
18#endif
19
20
21
22#ifdef _WIN32
23#define WANTED_FP_EXCEPTIONS (fpExcept::FPEX_DIV0 | fpExcept::FPEX_INVALID | fpExcept::FPEX_OVERFLOW) // EM_DENORMAL | EM_UNDERFLOW | EM_INEXACT; //commented out exceptions occur during proper operation
24#else
25#define WANTED_FP_EXCEPTIONS fpExcept::FPEX_DIV0 // | fpExcept::FPEX_INVALID | fpExcept::FPEX_OVERFLOW -> still wanted but we need TODO use try catch in ExtValue!
26#endif
27
28#define USE_PRINTFLOAT_DRAGON4
29#define NOCREATUREOBJECT
30#define SDK_WITHOUT_FRAMS
31#define NO_BARRIER
32#define NO_VMACHINE
33
34#define NEURO_IMPL_FILES "neuroimplfiles-SDK.h"
35#define NEURO_CLS_FACTORY "neurocls-f0-SDK-factory.h"
36#define NEURO_CLS_LIBRARY "neurocls-f0-SDK-library.h"
37#define F0_DEFASSIGN_FILE "defassign-f0-SDK.h"
38#define F0_CLASSES_FILE "f0-SDK-classes.h"
39#define GEN_CONFIG_FILE "gen-config-SDK.h"
40
41#endif
Note: See TracBrowser for help on using the repository browser.