aboutsummaryrefslogtreecommitdiff
path: root/lua.h
diff options
context:
space:
mode:
Diffstat (limited to 'lua.h')
-rw-r--r--lua.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/lua.h b/lua.h
index a6f32e98..6030246f 100644
--- a/lua.h
+++ b/lua.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lua.h,v 1.92 2001/03/26 14:31:49 roberto Exp roberto $ 2** $Id: lua.h,v 1.93 2001/04/06 21:17:37 roberto Exp roberto $
3** Lua - An Extensible Extension Language 3** Lua - An Extensible Extension Language
4** TeCGraf: Grupo de Tecnologia em Computacao Grafica, PUC-Rio, Brazil 4** TeCGraf: Grupo de Tecnologia em Computacao Grafica, PUC-Rio, Brazil
5** e-mail: lua@tecgraf.puc-rio.br 5** e-mail: lua@tecgraf.puc-rio.br
@@ -46,6 +46,11 @@
46#define LUA_ERRMEM 4 46#define LUA_ERRMEM 4
47#define LUA_ERRERR 5 47#define LUA_ERRERR 5
48 48
49/* weak modes */
50#define LUA_WEAK_KEY 1
51#define LUA_WEAK_VALUE 2
52
53
49typedef struct lua_State lua_State; 54typedef struct lua_State lua_State;
50 55
51typedef int (*lua_CFunction) (lua_State *L); 56typedef int (*lua_CFunction) (lua_State *L);
@@ -208,6 +213,9 @@ LUA_API void lua_concat (lua_State *L, int n);
208 213
209LUA_API void *lua_newuserdata (lua_State *L, size_t size); 214LUA_API void *lua_newuserdata (lua_State *L, size_t size);
210 215
216LUA_API void lua_setweakmode (lua_State *L, int mode);
217LUA_API int lua_getweakmode (lua_State *L, int index);
218
211 219
212/* 220/*
213** =============================================================== 221** ===============================================================
@@ -290,7 +298,7 @@ LUA_API void *lua_newuserdata (lua_State *L, size_t size);
290 298
291 299
292/****************************************************************************** 300/******************************************************************************
293* Copyright (C) 1994-2000 TeCGraf, PUC-Rio. All rights reserved. 301* Copyright (C) 1994-2001 TeCGraf, PUC-Rio. All rights reserved.
294* 302*
295* Permission is hereby granted, without written agreement and without license 303* Permission is hereby granted, without written agreement and without license
296* or royalty fees, to use, copy, modify, and distribute this software and its 304* or royalty fees, to use, copy, modify, and distribute this software and its