aboutsummaryrefslogtreecommitdiff
path: root/lstring.h
diff options
context:
space:
mode:
Diffstat (limited to 'lstring.h')
-rw-r--r--lstring.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/lstring.h b/lstring.h
index 6351003a..416d9519 100644
--- a/lstring.h
+++ b/lstring.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lstring.h,v 1.60 2015/09/08 15:41:05 roberto Exp roberto $ 2** $Id: lstring.h,v 1.61 2015/11/03 15:36:01 roberto Exp roberto $
3** String table (keep all strings handled by Lua) 3** String table (keep all strings handled by Lua)
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -12,6 +12,13 @@
12#include "lstate.h" 12#include "lstate.h"
13 13
14 14
15/*
16** Memory-allocation error message must be preallocated (it cannot
17** be created after memory is exausted)
18*/
19#define MEMERRMSG "not enough memory"
20
21
15#define sizelstring(l) (sizeof(union UTString) + ((l) + 1) * sizeof(char)) 22#define sizelstring(l) (sizeof(union UTString) + ((l) + 1) * sizeof(char))
16 23
17#define sizeludata(l) (sizeof(union UUdata) + (l)) 24#define sizeludata(l) (sizeof(union UUdata) + (l))