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

Function getRefClass

sdk/tests/test_feature/source/test_objhandle2.cpp:92–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90
91CRefClass c;
92CRefClass *getRefClass()
93{
94// asIScriptContext *ctx = asGetActiveContext();
95// PRINTF("ln:%d ", ctx->GetCurrentLineNumber());
96// PRINTF("getRefClass() = %X\n", &c);
97
98 // Must add the reference before returning it
99 c.AddRef();
100 return &c;
101}
102
103CRefClass *getRefClass(CRefClass *obj)
104{

Callers

nothing calls this directly

Calls 1

AddRefMethod · 0.45

Tested by

no test coverage detected