misc.h

Mon, 18 Mar 2013 04:03:05 +0200

author
Santeri Piippo <crimsondusk64@gmail.com>
date
Mon, 18 Mar 2013 04:03:05 +0200
changeset 24
d2d4d0154338
parent 18
a6732098fed8
child 25
c74bb88f537d
permissions
-rw-r--r--

added dummy action for future inlining command. Also GCC says that deleting instances of classes with virtual members but no virtual destructors is bad.

#ifndef __MISC_H__
#define __MISC_H__

#include "common.h"
#include "str.h"

inline str GetWord (str& zString, ulong ulIndex) {
	return (zString / " ")[ulIndex];
}

double GetWordFloat (str& s, const ushort n);
long GetWordInt (str& s, const ushort n);
vertex ParseVertex (str& s, const ushort n);
void StripWhitespace (str& s);

// Float to string
str ftoa (double fCoord);

#endif // __MISC_H__

mercurial