|
libcmutils 0.6.5
Multi-platform C99 utility library
|
A C99 utility library for Linux, macOS and Windows, written so that one source tree builds unchanged on all three.
An object is a struct whose members are its methods, and every method takes the object as its first argument. The CMCall macro fills that argument in:
Two rules come with it. Whether a CMCall may appear inside another one's argument list depends on the compiler - see CMUTIL_CALL_NESTED - and whether the receiver is evaluated once or twice likewise - see CMUTIL_CALL_SINGLE_EVAL. Both detect what the compiler supports and can be overridden before including this header.
CMUTIL_Clear() reports whether every object allocated through the library was released, which makes it a leak check as well as a teardown.
Topics, in the bar above, groups the API by subject - start there if you know roughly what you need. Data Structures lists the object types, and the search box finds anything by name.
Elsewhere: