blob: 8ae418dff4f24d98f411ebe5dbc7044c841a9600 [file] [log] [blame]
Elvira Khabirova09294222015-08-04 01:47:02 +03001To use mpers functionality, one should:
2* typedef all of the target types which are compound and not typedefed
3already;
4* for each target type, include DEF_MPERS_TYPE(target_type_t), these can
5be included conditionally;
6* include MPERS_DEFS once;
7* before inclusion of MPERS_DEFS include all important headers
8(containing definitions of these types or other behaviour-affecting
9defines);
10* printers should be defined
Dmitry V. Levine2fb0bb2015-09-15 21:51:15 +000011as MPERS_PRINTER_DECL(return_type, function_name)(args),
12inside files that include MPERS_DEFS these printers should be called
13as MPERS_FUNC_NAME(function_name)(args), in other files
14they should be called just as function_name(args).