![]() |
Libmacro
0.2
Libmacro is an extensible macro and hotkey library.
|
Utilities for Libmacro. More...
Go to the source code of this file.
Macros | |
| #define | mcr_index_bit(index) (1 << index) |
Functions | |
| MCR_API const char * | mcr_timestamp () |
| MCR_API size_t | mcr_bit_index (uintmax_t bitval) |
| MCR_API int | mcr_thrd_errno (int thrdError) |
| MCR_API int | mcr_thrd (thrd_start_t func, void *arg) |
| MCR_API int | mcr_privileges_deactivate () |
Utilities for Libmacro.
Definition in file util.h.
| #define mcr_index_bit | ( | index | ) | (1 << index) |
For given array index return the corresponding bit value.
See mcr_bit_index
| MCR_API size_t mcr_bit_index | ( | uintmax_t | bitval | ) |
For given bit return the corresponding array index. Requires at least one "on" bit
See mcr_index_bit
| MCR_API int mcr_privileges_deactivate | ( | ) |
| MCR_API int mcr_thrd | ( | thrd_start_t | func, |
| void * | arg | ||
| ) |
thrd_create and thrd_detach
| MCR_API int mcr_thrd_errno | ( | int | thrdError | ) |
Get an errno.h code from a threading error number.
| MCR_API const char* mcr_timestamp | ( | ) |
time(NULL) and ctime