ConstGlobalThunk Class Reference
 
 
 
ConstGlobalThunk Class Reference

#include <thunks.h>

Inheritance diagram for ConstGlobalThunk:
GlobalThunk

Public Member Functions

  ConstGlobalThunk (Value *iname)
  ConstGlobalThunk (Value *iname, Value *ival)
Value eval ()
ScripterExport void  collect ()
Value assign_vf (Value **arg_list, int count)

Constructor & Destructor Documentation

ConstGlobalThunk ( Value iname ) [inline]
ConstGlobalThunk ( Value iname,
Value ival 
) [inline]
: GlobalThunk(iname, ival) { tag = INTERNAL_CONST_GLOBAL_THUNK_TAG; }

Member Function Documentation

Value* eval ( ) [inline]

Reimplemented from GlobalThunk.

{ return cell->is_const() ? cell->copy_vf(NULL, 0) : cell; }
ScripterExport void collect ( )
Value* assign_vf ( Value **  arg_list,
int  count 
) [inline]

Reimplemented from GlobalThunk.

{ throw AssignToConstError (this); return &undefined; }