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:
26
hecl/DataSpecRegistry.hpp.in
Normal file
26
hecl/DataSpecRegistry.hpp.in
Normal 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@
|
||||
}
|
||||
Reference in New Issue
Block a user