Pebble Foundation Classes
0.2.0
C++ for Pebble
|
Macros | |
#define | PBL_API_EXISTS(x) defined(_PBL_API_EXISTS_##x) |
#define | PBL_API_EXISTS(x) defined(_PBL_API_EXISTS_##x) |
#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.
#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.