Files
funnygame/fpc/buildfile/interfaces.cpp
2025-12-28 01:39:26 +02:00

27 lines
638 B
C++

#include "tier1/interface.h"
#include "helper.h"
static BuildFileInfo_t buildfileinfo = {};
BuildFileInfo_t *GetBuildFileInfo()
{
return &buildfileinfo;
}
CBuildStage::CBuildStage( const char *psz, int(*pMainFn)() )
{
m_psz = psz;
m_pMainFn = pMainFn;
if (psz == 0 || pMainFn == 0)
Plat_FatalErrorFunc("Name and function pointer must be set\n");
GetBuildFileInfo()->m_stages.AppendTail(this);
};
CBuildDependentFile::CBuildDependentFile( const char *psz )
{
GetBuildFileInfo()->m_dependantFiles.AppendTail(psz);
}
EXPOSE_INTERFACE_GLOBALVAR(BuildFileInfo_t, BuildFileInfo_t, BUILD_FILE_INFO_INTERFACE_NAME, buildfileinfo);