Pebble Foundation Classes  0.2.0
C++ for Pebble
Compatibility Macros
Collaboration diagram for Compatibility Macros:

Macros

#define PBL_API_EXISTS(x)   defined(_PBL_API_EXISTS_##x)
 
#define PBL_API_EXISTS(x)   defined(_PBL_API_EXISTS_##x)
 

Detailed Description

Macro Definition Documentation

◆ PBL_API_EXISTS [1/2]

#define PBL_API_EXISTS (   x)    defined(_PBL_API_EXISTS_##x)

Evaluates to true if a given function is available in this SDK For example: #if PBL_API_EXISTS(app_event_loop) will evaluate to true because app_event_loop is a valid pebble API function, where #if PBL_API_EXISTS(spaceship_event_loop) will evaluate to false because that function does not exist (yet). Use this to build apps that are valid when built with different SDK versions that support different levels of functionality.

◆ PBL_API_EXISTS [2/2]

#define PBL_API_EXISTS (   x)    defined(_PBL_API_EXISTS_##x)

Evaluates to true if a given function is available in this SDK For example: #if PBL_API_EXISTS(app_event_loop) will evaluate to true because app_event_loop is a valid pebble API function, where #if PBL_API_EXISTS(spaceship_event_loop) will evaluate to false because that function does not exist (yet). Use this to build apps that are valid when built with different SDK versions that support different levels of functionality.