annotate lib/lua/lua-5.2.2/ldebug.h @ 2222:66bd74aa9f5e

smk video draw
author Ritor1
date Tue, 18 Feb 2014 19:43:54 +0600
parents 41cc4dd3c122
children
rev   line source
1866
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
1 /*
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
2 ** $Id: ldebug.h,v 2.7 2011/10/07 20:45:19 roberto Exp $
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
3 ** Auxiliary functions from Debug Interface module
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
4 ** See Copyright Notice in lua.h
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
5 */
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
6
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
7 #ifndef ldebug_h
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
8 #define ldebug_h
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
9
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
10
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
11 #include "lstate.h"
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
12
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
13
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
14 #define pcRel(pc, p) (cast(int, (pc) - (p)->code) - 1)
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
15
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
16 #define getfuncline(f,pc) (((f)->lineinfo) ? (f)->lineinfo[pc] : 0)
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
17
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
18 #define resethookcount(L) (L->hookcount = L->basehookcount)
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
19
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
20 /* Active Lua function (given call info) */
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
21 #define ci_func(ci) (clLvalue((ci)->func))
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
22
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
23
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
24 LUAI_FUNC l_noret luaG_typeerror (lua_State *L, const TValue *o,
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
25 const char *opname);
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
26 LUAI_FUNC l_noret luaG_concaterror (lua_State *L, StkId p1, StkId p2);
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
27 LUAI_FUNC l_noret luaG_aritherror (lua_State *L, const TValue *p1,
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
28 const TValue *p2);
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
29 LUAI_FUNC l_noret luaG_ordererror (lua_State *L, const TValue *p1,
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
30 const TValue *p2);
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
31 LUAI_FUNC l_noret luaG_runerror (lua_State *L, const char *fmt, ...);
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
32 LUAI_FUNC l_noret luaG_errormsg (lua_State *L);
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
33
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
34 #endif