blob: ad1ca1816a8392265134e267bbca2f353eedbbaf [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. Levina8fce092016-05-21 22:53:06 +000011as MPERS_PRINTER_DECL(return_type, function_name, args),
Dmitry V. Levine2fb0bb2015-09-15 21:51:15 +000012inside 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).