2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-08 16:24:55 +00:00

DataSpecRegistry now generated by CMake

This commit is contained in:
Jack Andersen
2015-08-17 12:15:23 -10:00
parent ac4d139030
commit d28734f4df
3 changed files with 6 additions and 10 deletions

View File

@@ -0,0 +1,26 @@
/* 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
#include "HECL/Database.hpp"
namespace HECL
{
namespace Database
{
/* Centralized registry for DataSpec lookup */
std::vector<const struct DataSpecEntry*> DATA_SPEC_REGISTRY;
}
}
@HECL_DATASPEC_DECLS@
/* Please Call Me! */
void HECLRegisterDataSpecs()
{
@HECL_DATASPEC_PUSHES@
}