mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@1871 3b4a5df2-a311-0410-b5c6-a8a6f20db521
33 lines
603 B
C
33 lines
603 B
C
/*
|
|
** $Id: lstring.h,v 1.43 2005/04/25 19:24:10 roberto Exp $
|
|
** String table (keep all strings handled by Lua)
|
|
** See Copyright Notice in lua.h
|
|
*/
|
|
|
|
#ifndef lwstring_h
|
|
#define lwstring_h
|
|
|
|
#include <wchar.h>
|
|
|
|
extern "C" {
|
|
#include <lua.h>
|
|
#include <lauxlib.h>
|
|
#include <lualib.h>
|
|
}
|
|
|
|
#include "Types.h"
|
|
|
|
typedef struct {
|
|
int len;
|
|
CHAR16 data[1];
|
|
} TWString;
|
|
|
|
#define sizewstring(s) (sizeof(int) + (s) * sizeof(CHAR16) + sizeof(CHAR16))
|
|
|
|
#define luaWS_newstr(L, s) (luaWS_newlstr(L, s, wcslen(s)))
|
|
|
|
void luaWS_newlstr (lua_State *L, const CHAR16 *str, size_t l);
|
|
|
|
|
|
#endif
|