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