Add m3_config_platforms

extensions
Volodymyr Shymanskyy 5 years ago
parent 22bd0fd3eb
commit 6481577b65

@ -9,21 +9,7 @@
#ifndef m3_config_h
#define m3_config_h
//TODO: move to a separate file
# if defined(PARTICLE)
# define d_m3LogOutput false
# define d_m3MaxFunctionStackHeight 256
# endif
# if defined(__clang__)
# define M3_COMPILER_CLANG 1
# elif defined(__GNUC__) || defined(__GNUG__)
# define M3_COMPILER_GCC 1
# elif defined(_MSC_VER)
# define M3_COMPILER_MSVC 1
# else
# warning "Compiler not detected"
# endif
#include "m3_config_platforms.h"
# ifndef d_m3MaxNumFunctionArgs
# define d_m3MaxNumFunctionArgs 16

@ -0,0 +1,35 @@
#ifndef m3_config_platforms_h
#define m3_config_platforms_h
# if defined(__clang__)
# define M3_COMPILER_CLANG 1
# elif defined(__GNUC__) || defined(__GNUG__)
# define M3_COMPILER_GCC 1
# elif defined(_MSC_VER)
# define M3_COMPILER_MSVC 1
# else
# warning "Compiler not detected"
# endif
# if defined(PARTICLE)
# define d_m3LogOutput false
# define d_m3MaxFunctionStackHeight 256
# elif defined(ESP8266)
# define d_m3LogOutput false
# define d_m3MaxFunctionStackHeight 256
# define d_m3FixedHeap (8*1024)
# elif defined(ESP32)
# define d_m3MaxFunctionStackHeight 256
# elif defined(WM_W600)
# define d_m3MaxFunctionStackHeight 256
# elif defined(BLUE_PILL)
# define d_m3LogOutput false
# define d_m3MaxFunctionStackHeight 256
# define d_m3FixedHeap (8*1024)
# elif defined(FOMU)
# define d_m3LogOutput false
# define d_m3MaxFunctionStackHeight 256
# define d_m3FixedHeap (8*1024)
# endif
#endif
Loading…
Cancel
Save