metaforce/hecl/DataSpecRegistry.hpp.in

22 lines
535 B
C++
Raw Permalink Normal View History

2015-07-25 23:01:02 +00:00
/* Include this file once in the main translation unit of any executable file
* using HECL's database functionality (see driver/main.cpp)
*/
#ifdef DATA_SPEC_REGISTRY_HPP
#error DataSpecRegistry.hpp may only be included once
#endif
#define DATA_SPEC_REGISTRY_HPP
2016-03-04 23:02:44 +00:00
#include "hecl/Database.hpp"
2015-07-22 19:14:50 +00:00
2019-01-26 23:21:30 +00:00
namespace hecl::Database {
2015-07-22 19:14:50 +00:00
/* Centralized registry for DataSpec lookup */
std::vector<const struct DataSpecEntry*> DATA_SPEC_REGISTRY;
}
@HECL_DATASPEC_DECLS@
2015-07-22 19:14:50 +00:00
/* Please Call Me! */
2019-01-26 23:21:30 +00:00
void HECLRegisterDataSpecs() {
@HECL_DATASPEC_PUSHES@
2015-07-22 19:14:50 +00:00
}