Banjo API 0.0.1
Multi-purpose C99 API
Loading...
Searching...
No Matches
api.h File Reference

General-purpose definitions for Banjo API.

#include <stddef.h>
#include <stdint.h>
Include dependency graph for api.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  bj_build_info
 Structure holding build information of the binary. More...
 

Macros

#define BJ_VERSION_MAJOR(version)
 Extracts the major version number from a 32-bit version number.
 
#define BJ_VERSION_MINOR(version)
 Extracts the minor version number from a 32-bit version number.
 
#define BJ_VERSION_PATCH(version)
 Extracts the patch version number from a 32-bit version number.
 
#define BJ_MAKE_VERSION(major, minor, patch)
 Constructs an API version number into 32bits.
 
#define BJ_VERSION_MAJOR_NUMBER   0
 Banjo current major version.
 
#define BJ_VERSION_MINOR_NUMBER   1
 Banjo current minor version.
 
#define BJ_VERSION_PATCH_NUMBER   0
 Banjo current patch version.
 
#define BJ_VERSION   BJ_MAKE_VERSION(BJ_VERSION_MAJOR_NUMBER, BJ_VERSION_MINOR_NUMBER, BJ_VERSION_PATCH_NUMBER)
 Expands to a 32bits representatin of the current version the API.
 
#define BJ_NAME   "Banjo"
 Name of the library.
 
#define BJ_OS_UNKNOWN
 Platform detection.
 
#define BJ_FALSE   ((bj_bool)0)
 
#define BJ_TRUE   ((bj_bool)1)
 

Typedefs

typedef uint32_t bj_bool
 

Functions

const bj_build_infobj_get_build_info (void)
 Returns the build information of the runtime Banjo binaries.