ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/include/util.h
(Generate patch)

Comparing deliantra/server/include/util.h (file contents):
Revision 1.54 by root, Mon Aug 6 10:54:12 2007 UTC vs.
Revision 1.56 by root, Sun Sep 9 06:25:46 2007 UTC

345 MTH void refcnt_dec () const { --refcnt; } 345 MTH void refcnt_dec () const { --refcnt; }
346 346
347 refcnt_base () : refcnt (0) { } 347 refcnt_base () : refcnt (0) { }
348}; 348};
349 349
350// to avoid branches with more advanced compilers
350extern refcnt_base::refcnt_t refcnt_dummy; 351extern refcnt_base::refcnt_t refcnt_dummy;
351 352
352template<class T> 353template<class T>
353struct refptr 354struct refptr
354{ 355{
544// return current time as timestampe 545// return current time as timestampe
545tstamp now (); 546tstamp now ();
546 547
547int similar_direction (int a, int b); 548int similar_direction (int a, int b);
548 549
549// like printf, but returns a std::string 550// like sprintf, but returns a "static" buffer
550const std::string format (const char *format, ...); 551const char *format (const char *format, ...);
551 552
552#endif 553#endif
553 554

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines