sourcehook/sh_stack.h
changeset 252 080f0438e0cb
parent 162 a95db73792e5
child 264 188e8220fdc3
     1.1 --- a/sourcehook/sh_stack.h	Tue Aug 15 20:10:12 2006 +0000
     1.2 +++ b/sourcehook/sh_stack.h	Tue Aug 15 20:28:18 2006 +0000
     1.3 @@ -1,12 +1,12 @@
     1.4  /* ======== SourceMM ========
     1.5 -* Copyright (C) 2004-2005 Metamod:Source Development Team
     1.6 -* No warranties of any kind
     1.7 -*
     1.8 -* License: zlib/libpng
     1.9 -*
    1.10 -* Author(s): Pavol "PM OnoTo" Marko
    1.11 -* ============================
    1.12 -*/
    1.13 + * Copyright (C) 2004-2006 Metamod:Source Development Team
    1.14 + * No warranties of any kind
    1.15 + *
    1.16 + * License: zlib/libpng
    1.17 + *
    1.18 + * Author(s): Pavol "PM OnoTo" Marko
    1.19 + * ============================
    1.20 + */
    1.21  
    1.22  #ifndef __SH_STACK_H__
    1.23  #define __SH_STACK_H__
    1.24 @@ -159,11 +159,17 @@
    1.25  			m_Elements[m_UsedSize++] = val;
    1.26  			return true;
    1.27  		}
    1.28 +
    1.29  		void pop()
    1.30  		{
    1.31  			--m_UsedSize;
    1.32  		}
    1.33  
    1.34 +		void popall()
    1.35 +		{
    1.36 +			m_UsedSize = 0;
    1.37 +		}
    1.38 +
    1.39  		T &front()
    1.40  		{
    1.41  			return m_Elements[m_UsedSize - 1];