MCPcopy Create free account
hub / github.com/anjo76/angelscript / BeginConfigGroup

Method BeginConfigGroup

sdk/angelscript/source/as_scriptengine.cpp:5777–5799  ·  view source on GitHub ↗

interface

Source from the content-addressed store, hash-verified

5775
5776// interface
5777int asCScriptEngine::BeginConfigGroup(const char *groupName)
5778{
5779 // Make sure the group name doesn't already exist
5780 for( asUINT n = 0; n < configGroups.GetLength(); n++ )
5781 {
5782 if( configGroups[n]->groupName == groupName )
5783 return asNAME_TAKEN;
5784 }
5785
5786 if( currentGroup != &defaultGroup )
5787 return asNOT_SUPPORTED;
5788
5789 asCConfigGroup *group = asNEW(asCConfigGroup)();
5790 if( group == 0 )
5791 return asOUT_OF_MEMORY;
5792
5793 group->groupName = groupName;
5794
5795 configGroups.PushLast(group);
5796 currentGroup = group;
5797
5798 return 0;
5799}
5800
5801// interface
5802int asCScriptEngine::EndConfigGroup()

Callers 4

TestFunction · 0.80
TestFunction · 0.80
TestFunction · 0.80
Test2Function · 0.80

Calls 2

PushLastMethod · 0.80
GetLengthMethod · 0.45

Tested by 4

TestFunction · 0.64
TestFunction · 0.64
TestFunction · 0.64
Test2Function · 0.64