Elvira Khabirova | 0929422 | 2015-08-04 01:47:02 +0300 | [diff] [blame] | 1 | To use mpers functionality, one should: |
| 2 | * typedef all of the target types which are compound and not typedefed |
| 3 | already; |
| 4 | * for each target type, include DEF_MPERS_TYPE(target_type_t), these can |
| 5 | be 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 |
| 9 | defines); |
| 10 | * printers should be defined |
Dmitry V. Levin | a8fce09 | 2016-05-21 22:53:06 +0000 | [diff] [blame] | 11 | as MPERS_PRINTER_DECL(return_type, function_name, args), |
Dmitry V. Levin | e2fb0bb | 2015-09-15 21:51:15 +0000 | [diff] [blame] | 12 | inside files that include MPERS_DEFS these printers should be called |
| 13 | as MPERS_FUNC_NAME(function_name)(args), in other files |
| 14 | they should be called just as function_name(args). |