2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-05-15 11:11:21 +00:00
metaforce/hecl/lib/Database/ASInit.cpp
2015-07-15 16:03:38 -10:00

25 lines
502 B
C++

#include "HECL/Database.hpp"
namespace HECL
{
namespace Database
{
static std::string StringFactory(unsigned int byteLength, const char *s)
{
return std::string(s, byteLength);
}
ASStringType asSTRINGTYPE;
ASStringType::ASStringType() : ASType<std::string>("", "string")
{
assert(asENGINE->RegisterStringFactory("string",
AngelScript::asFUNCTION(StringFactory),
AngelScript::asCALL_CDECL) >= 0);
}
}
}