|
#define | P_GNUC_WARN_UNUSED_RESULT |
| Gives a warning if the result returned from a function is not being used.
|
|
#define | P_LIB_GLOBAL_API __declspec(dllexport) |
| Marks a symbol (variable, function) as global.
|
|
#define | P_LIB_INTERNAL_API |
| Marks a symbol (variable, function) as local.
|
|
#define | P_LIB_API P_LIB_GLOBAL_API |
| Exports a symbol from a shared library.
|
|
#define | P_NO_RETURN __declspec(noreturn) |
| Notifies a compiler that a function will never return a value (i.e.
|
|
#define | P_LIKELY(x) |
| Hints a compiler that a condition is likely to be true so it can perform code optimizations.
|
|
#define | P_UNLIKELY(x) |
| Hints a compiler that a condition is likely to be false so it can perform code optimizations.
|
|
#define | P_UNUSED(a) |
| Macro to by-pass a compiler warning on unused variables.
|
|
#define | P_WARNING(msg) |
| Prints a warning message.
|
|
#define | P_ERROR(msg) |
| Prints an error message.
|
|
#define | P_DEBUG(msg) |
| Prints a debug message.
|
|
#define | PLIBSYS_VERSION_MAJOR |
| Library major version number.
|
|
#define | PLIBSYS_VERSION_MINOR |
| Library minor version number.
|
|
#define | PLIBSYS_VERSION_PATCH |
| Library patch version number.
|
|
#define | PLIBSYS_VERSION_STR |
| Library full version in the string form, i.e.
|
|
#define | PLIBSYS_VERSION |
| Library full version in the form 0xMMNNPP (MM = major, NN = minor, PP = patch), i.e.
|
|
#define | PLIBSYS_VERSION_CHECK(major, minor, patch) |
| Makes a library version number which can be used to check the library version against which the application is compiled.
|
|
#define | P_BEGIN_DECLS |
| Starts .h file declarations to be exported as C functions.
|
|
#define | P_END_DECLS |
| Closes .h file declarations to be exported as C functions, should be always used after P_BEGIN_DECLS.
|
|
Miscellaneous macros.
- Author
- Alexander Saprykin
All the macros are completely independent of any other platform-specific headers, thus gurantee to work with any compiler under any operating system in the same way as they are used within the library.
This family of macros provides various additional capabilities (compiler hints, attributes, version, etc.).
Definition in file pmacros.h.