Global Lender
A Pebble app for finding new and interesting loans on kiva.org
Macros | Typedefs | Enumerations | Functions
magpebapp.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MPA_RETURN_IF_NULL(var)
 

Typedefs

typedef enum MagPebApp_ErrCode MagPebApp_ErrCode
 

Enumerations

enum  MagPebApp_ErrCode {
  MPA_SUCCESS = 0, MPA_UNKNOWN_ERR, MPA_NULL_POINTER_ERR, MPA_STRING_ERR,
  MPA_INVALID_INPUT_ERR, MPA_OUT_OF_MEMORY_ERR, MPA_LAST_ERRCODE
}
 

Functions

const char * MagPebApp_getErrMsg (const MagPebApp_ErrCode errCode)
 Returns error messages for MagApp error codes. More...
 

Macro Definition Documentation

#define MPA_RETURN_IF_NULL (   var)
Value:
if (var == NULL) { \
APP_LOG(APP_LOG_LEVEL_ERROR, "Attempted operation on NULL pointer."); \
}
Definition: magpebapp.h:15
#define APP_LOG(...)
Definition: main.c:5

Typedef Documentation

Enumeration Type Documentation

Enumerator
MPA_SUCCESS 
MPA_UNKNOWN_ERR 
MPA_NULL_POINTER_ERR 
MPA_STRING_ERR 
MPA_INVALID_INPUT_ERR 
MPA_OUT_OF_MEMORY_ERR 
MPA_LAST_ERRCODE 

Function Documentation

const char* MagPebApp_getErrMsg ( const MagPebApp_ErrCode  errCode)

Returns error messages for MagApp error codes.