trunk/src/tools/imgtool/modules.cpp
| r250163 | r250164 | |
| 16 | 16 | |
| 17 | 17 | /* step 1: declare all external references */ |
| 18 | 18 | #define MODULE(name) extern void name##_get_info(const imgtool_class *imgclass, UINT32 state, union imgtoolinfo *info); |
| 19 | | #include "modules.c" |
| 19 | #include "modules.cpp" |
| 20 | 20 | #undef MODULE |
| 21 | 21 | |
| 22 | 22 | /* step 2: define the modules[] array */ |
| 23 | 23 | #define MODULE(name) name##_get_info, |
| 24 | 24 | static void (*const modules[])(const imgtool_class *imgclass, UINT32 state, union imgtoolinfo *info) = |
| 25 | 25 | { |
| 26 | | #include "modules.c" |
| 26 | #include "modules.cpp" |
| 27 | 27 | }; |
| 28 | 28 | |
| 29 | 29 | /* step 3: declare imgtool_create_cannonical_library() */ |