Imported from ../lua-3.1.tar.gz.
[lua.git] / src / luac / luac.h
blobc3d8d73ae90421bfee84c06570f9a481b2c5fa0c
1 /*
2 ** $Id: luac.h,v 1.6 1998/07/12 00:17:37 lhf Exp $
3 ** definitions for luac
4 ** See Copyright Notice in lua.h
5 */
7 #include "lauxlib.h"
8 #include "lfunc.h"
9 #include "lobject.h"
10 #include "lopcodes.h"
11 #include "lstring.h"
12 #include "lundump.h"
14 typedef struct
16 char* name;
17 int size;
18 int op;
19 int class;
20 int arg;
21 int arg2;
22 } Opcode;
24 int OpcodeInfo(TProtoFunc* tf, Byte* p, Opcode* I, char* xFILE, int xLINE);
25 int CodeSize(TProtoFunc* tf);
27 #define INFO(tf,p,I) OpcodeInfo(tf,p,I,__FILE__,__LINE__)
28 #define fileName(tf) ( (tf->fileName)==NULL ? NULL : tf->fileName->str )
30 #define NOP 255
31 #define STACK -1
32 #define ARGS -2
33 #define VARARGS -3