00001 /* 00002 FALCON - The Falcon Programming Language. 00003 FILE: itm_deref.h 00004 00005 Inline implementation of Item::dereference( byte code ) 00006 ------------------------------------------------------------------- 00007 Author: Giancarlo Niccolai 00008 Begin: Thu Feb 3 2005 00009 00010 ------------------------------------------------------------------- 00011 (C) Copyright 2004: the FALCON developers (see list in AUTHORS file) 00012 00013 See LICENSE file for licensing details. 00014 */ 00015 00024 #ifndef flc_itm_deref_H 00025 #define flc_itm_deref_H 00026 00027 #include <falcon/item.h> 00028 #include <falcon/pcodes.h> 00029 00030 namespace Falcon { 00031 00032 inline Item *Item::dereference( byte opcode ) const { 00033 if ( type() != FLC_ITEM_REFERENCE ) //|| opcode >= P_TRAV ) 00034 return this; 00035 return &asReference()->origin(); 00036 } 00037 00038 } 00039 00040 #endif 00041 00042 /* end of itm_deref.h */