core/sm_autonatives.h
author David Anderson <dvander@alliedmods.net>
Thu Mar 15 20:44:23 2007 +0000 (2007-03-15)
changeset 619 6934bf39171e
parent 370 d3a484f98f6d
child 653 ef60870067ff
permissions -rw-r--r--
random touchups that might not be so great
     1 /**
     2  * ===============================================================
     3  * SourceMod (C)2004-2007 AlliedModders LLC.  All rights reserved.
     4  * ===============================================================
     5  *
     6  * This file is not open source and may not be copied without explicit
     7  * written permission of AlliedModders LLC.  This file may not be redistributed 
     8  * in whole or significant part.
     9  * For information, see LICENSE.txt or http://www.sourcemod.net/license.php
    10  *
    11  * Version: $Id$
    12  */
    13 
    14 #ifndef _INCLUDE_SOURCEMOD_CORE_AUTONATIVES_H_
    15 #define _INCLUDE_SOURCEMOD_CORE_AUTONATIVES_H_
    16 
    17 #include "sm_globals.h"
    18 
    19 #define REGISTER_NATIVES(globname) \
    20 	extern sp_nativeinfo_t globNatives##globname[]; \
    21 	CoreNativesToAdd globNativesCls##globname(globNatives##globname); \
    22 	sp_nativeinfo_t globNatives##globname[] = 
    23 
    24 class CoreNativesToAdd : public SMGlobalClass
    25 {
    26 public:
    27 	CoreNativesToAdd(sp_nativeinfo_t *pList)
    28 		: m_NativeList(pList)
    29 	{
    30 	}
    31 	void OnSourceModAllInitialized();
    32 	sp_nativeinfo_t *m_NativeList;
    33 };
    34 
    35 #endif //_INCLUDE_SOURCEMOD_CORE_AUTONATIVES_H_