diff options
Diffstat (limited to 'lbuffer.c')
| -rw-r--r-- | lbuffer.c | 6 |
1 files changed, 5 insertions, 1 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: $ | 2 | ** $Id: lbuffer.c,v 1.1 1997/12/23 19:24:36 roberto Exp roberto $ |
| 3 | ** Auxiliar functions for building Lua libraries | 3 | ** Auxiliar functions for building Lua libraries |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -57,6 +57,10 @@ void luaL_addsize (int n) | |||
| 57 | L->Mbuffnext += n; | 57 | L->Mbuffnext += n; |
| 58 | } | 58 | } |
| 59 | 59 | ||
| 60 | int luaL_getsize (void) | ||
| 61 | { | ||
| 62 | return L->Mbuffnext-(L->Mbuffbase-L->Mbuffer); | ||
| 63 | } | ||
| 60 | 64 | ||
| 61 | int luaL_newbuffer (int size) | 65 | int luaL_newbuffer (int size) |
| 62 | { | 66 | { |
