(svn r2057) Add InlineString() to make _userstring construction a bit cleaner.

This commit is contained in:
tron
2005-03-25 11:32:58 +00:00
parent 6246150d8d
commit 4d55d8a4bd
3 changed files with 20 additions and 26 deletions

View File

@@ -1,6 +1,14 @@
#ifndef STRINGS_H
#define STRINGS_H
static inline char* InlineString(char* buf, uint16 string)
{
*buf++ = '\x81';
*buf++ = string & 0xFF;
*buf++ = string >> 8;
return buf;
}
char *GetString(char *buffr, uint16 string);
void InjectDParam(int amount);