aboutsummaryrefslogtreecommitdiff
path: root/ldebug.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-06-28 16:58:57 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-06-28 16:58:57 -0300
commit2a4afb97c8a3f64dccad86fa848855616ea2c254 (patch)
treee343fd15c387e6975b7a680130ee09735666ea2d /ldebug.h
parent87a5fae45322dde56306de92d8eb8050506fb9ba (diff)
downloadlua-2a4afb97c8a3f64dccad86fa848855616ea2c254.tar.gz
lua-2a4afb97c8a3f64dccad86fa848855616ea2c254.tar.bz2
lua-2a4afb97c8a3f64dccad86fa848855616ea2c254.zip
new module lopcodes.c for tables describing opcodes
Diffstat (limited to 'ldebug.h')
-rw-r--r--ldebug.h21
1 files changed, 1 insertions, 20 deletions
diff --git a/ldebug.h b/ldebug.h
index 678ef1ce..b1320301 100644
--- a/ldebug.h
+++ b/ldebug.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ldebug.h,v 1.13 2001/06/06 17:50:36 roberto Exp roberto $ 2** $Id: ldebug.h,v 1.14 2001/06/11 14:56:42 roberto Exp roberto $
3** Auxiliary functions from Debug Interface module 3** Auxiliary functions from Debug Interface module
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -12,25 +12,6 @@
12#include "luadebug.h" 12#include "luadebug.h"
13 13
14 14
15enum OpMode {iABC, iABc, iAsBc}; /* basic instruction format */
16
17/*
18** masks for instruction properties
19*/
20enum OpModeMask {
21 OpModeBreg = 2, /* B is a register */
22 OpModeCreg, /* C is a register/constant */
23 OpModesetA, /* instruction set register A */
24 OpModeK, /* Bc is a constant */
25 OpModeT /* operator is a test */
26};
27
28extern const lu_byte luaG_opmodes[];
29
30#define getOpMode(m) ((enum OpMode)(luaG_opmodes[m] & 3))
31#define testOpMode(m, b) (luaG_opmodes[m] & (1 << (b)))
32
33
34void luaG_typeerror (lua_State *L, StkId o, const l_char *op); 15void luaG_typeerror (lua_State *L, StkId o, const l_char *op);
35void luaG_concaterror (lua_State *L, StkId p1, StkId p2); 16void luaG_concaterror (lua_State *L, StkId p1, StkId p2);
36void luaG_aritherror (lua_State *L, StkId p1, TObject *p2); 17void luaG_aritherror (lua_State *L, StkId p1, TObject *p2);