engine/source/openborscript/drawmethod.c
// Caskey, Damon  V.
// 2019-04-15
//
// Allocate a new drawmethod and return the pointer.
Caskey, Damon  V.

Allocate a new drawmethod and return the pointer.
Caskey Damon V . Allocate a new drawmethod and return the pointer .
HRESULT openbor_allocate_drawmethod(ScriptVariant **varlist, ScriptVariant **pretvar, int paramCount)
{
	extern s_drawmethod *allocate_drawmethod();
	s_drawmethod *drawmethod;
	ScriptVariant_ChangeType(*pretvar, VT_PTR);
	if ((drawmethod = allocate_drawmethod()))
	{
		(*pretvar)->ptrVal = (s_drawmethod *)drawmethod;
	}
	return S_OK;
}
HRESULT openbor_allocate_drawmethod ( ScriptVariant * * varlist , ScriptVariant * * pretvar , int paramCount ) { extern s_drawmethod * allocate_drawmethod ( ) ; s_drawmethod * drawmethod ; ScriptVariant_ChangeType ( * pretvar , VT_PTR ) ; if ( ( drawmethod = allocate_drawmethod ( ) ) ) { ( * pretvar ) -> ptrVal = ( s_drawmethod * ) drawmethod ; } return S_OK ; }
Caskey, Damon  V.
2019-04-15
Caskey Damon V . 2019 - 04 - 15