Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | File Members

HasInt64Command Class Reference

Inheritance diagram for HasInt64Command:

Inheritance graph
[legend]
Collaboration diagram for HasInt64Command:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 HasInt64Command ()
virtual int command (int argc, const char *const *argv)

Constructor & Destructor Documentation

HasInt64Command::HasInt64Command  )  [inline]
 

Definition at line 119 of file misc.cc.

00119 : TclCommand("ns-hasint64") {}


Member Function Documentation

int HasInt64Command::command int  argc,
const char *const *  argv
[virtual]
 

Definition at line 123 of file misc.cc.

00124 {
00125         Tcl& tcl = Tcl::instance();
00126         char res[2];
00127         int flag = 0; 
00128 #if defined(HAVE_INT64)
00129         flag = 1; 
00130         #endif
00131         sprintf(res, "%d", flag);
00132         tcl.resultf("%s", res);
00133         return (TCL_OK);
00134 }


The documentation for this class was generated from the following file:
Generated on Tue Apr 20 12:50:18 2004 for NS2.26SourcesOriginal by doxygen 1.3.3