aboutsummaryrefslogtreecommitdiff
path: root/lua.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-09-02 17:00:41 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-09-02 17:00:41 -0300
commit7c0ccdfd61f1611ff0f5f6899a7679916686fc65 (patch)
tree843f9a7501112b801e90e53e8c3eb7496046b694 /lua.h
parent4964e7c8a0284a75a57cf591c3b3c77febaf40e6 (diff)
downloadlua-7c0ccdfd61f1611ff0f5f6899a7679916686fc65.tar.gz
lua-7c0ccdfd61f1611ff0f5f6899a7679916686fc65.tar.bz2
lua-7c0ccdfd61f1611ff0f5f6899a7679916686fc65.zip
avoid the use of "enum" in the API, as they do not have a fixed representation
Diffstat (limited to 'lua.h')
-rw-r--r--lua.h18
1 files changed, 13 insertions, 5 deletions
diff --git a/lua.h b/lua.h
index eb961e06..d3a22a75 100644
--- a/lua.h
+++ b/lua.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lua.h,v 1.155 2002/08/30 19:09:21 roberto Exp roberto $ 2** $Id: lua.h,v 1.156 2002/08/30 20:00:59 roberto Exp roberto $
3** Lua - An Extensible Extension Language 3** Lua - An Extensible Extension Language
4** Tecgraf: Computer Graphics Technology Group, PUC-Rio, Brazil 4** Tecgraf: Computer Graphics Technology Group, PUC-Rio, Brazil
5** http://www.lua.org mailto:info@lua.org 5** http://www.lua.org mailto:info@lua.org
@@ -308,11 +308,19 @@ LUA_API int lua_pushupvalues (lua_State *L);
308** ======================================================================= 308** =======================================================================
309*/ 309*/
310 310
311typedef enum lua_Hookevent { 311
312 LUA_HOOKCALL, LUA_HOOKRET, LUA_HOOKLINE, LUA_HOOKCOUNT 312/*
313} lua_Hookevent; 313** Event codes
314*/
315#define LUA_HOOKCALL 0
316#define LUA_HOOKRET 1
317#define LUA_HOOKLINE 2
318#define LUA_HOOKCOUNT 3
314 319
315 320
321/*
322** Event masks
323*/
316#define LUA_MASKCALL (2 << LUA_HOOKCALL) 324#define LUA_MASKCALL (2 << LUA_HOOKCALL)
317#define LUA_MASKRET (2 << LUA_HOOKRET) 325#define LUA_MASKRET (2 << LUA_HOOKRET)
318#define LUA_MASKLINE (2 << LUA_HOOKLINE) 326#define LUA_MASKLINE (2 << LUA_HOOKLINE)
@@ -339,7 +347,7 @@ LUA_API unsigned long lua_gethookmask (lua_State *L);
339#define LUA_IDSIZE 60 347#define LUA_IDSIZE 60
340 348
341struct lua_Debug { 349struct lua_Debug {
342 lua_Hookevent event; 350 int event;
343 const char *name; /* (n) */ 351 const char *name; /* (n) */
344 const char *namewhat; /* (n) `global', `local', `field', `method' */ 352 const char *namewhat; /* (n) `global', `local', `field', `method' */
345 const char *what; /* (S) `Lua' function, `C' function, Lua `main' */ 353 const char *what; /* (S) `Lua' function, `C' function, Lua `main' */