/*
 * Copyright (C) 2020-2021 Aloysius Indrayanto
 *
 * This file is part of the eCxx library, see LICENSE file for the license details.
 */

/*
 * This is a special header file for compatibility with the Arduino library part
 */


#ifndef ECXX_PLATFORM_NODEMCU_LIBACOMPAT_CORE_ESP8266_FEATURES_H
#define ECXX_PLATFORM_NODEMCU_LIBACOMPAT_CORE_ESP8266_FEATURES_H


//
// Include the eCxx header file
//
extern "C++" {
    #include "../CoreSys.h"
}


//
// Redefine the program memory macros
//
#define F(X)     ( PGM_STR(X)   )
#define PSTR(X)  ( PGM_STR(X).p )

#define PSTR4(X) ( PGM_STR(X).p ) // eCxx PGM_STR always uses 4-byte alignment


#endif
