MCPcopy Create free account
hub / github.com/HaxeFoundation/hxcpp / CreateEnum

Function CreateEnum

include/Enum.h:128–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126
127template<typename ENUM>
128ENUM *CreateEnum(const String &inName,int inIndex, int inFields)
129{
130 ENUM *result = new (inFields*sizeof(cpp::Variant)) ENUM;
131 result->_hx_setIdentity(inName,inIndex,inFields);
132 return result;
133}
134
135template<typename ENUM>
136ENUM *CreateConstEnum(const String &inName,int inIndex)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected