diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-06-10 13:52:03 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-06-10 13:52:03 -0300 |
commit | 2598138eced28b6ff8d4db9550a4e70c26cd4baa (patch) | |
tree | 3af8e254e508a5dc5ce29c16d8197c542582d43d /lcode.h | |
parent | 4a67e48611c1ffaa6d474e443c3c89849c8b6e5f (diff) | |
download | lua-2598138eced28b6ff8d4db9550a4e70c26cd4baa.tar.gz lua-2598138eced28b6ff8d4db9550a4e70c26cd4baa.tar.bz2 lua-2598138eced28b6ff8d4db9550a4e70c26cd4baa.zip |
new function 'luaK_codek' (detail)
Diffstat (limited to 'lcode.h')
-rw-r--r-- | lcode.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lcode.h,v 1.48 2006/03/21 19:28:03 roberto Exp roberto $ | 2 | ** $Id: lcode.h,v 1.49 2008/10/28 12:55:00 roberto Exp roberto $ |
3 | ** Code generator for Lua | 3 | ** Code generator for Lua |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -44,6 +44,7 @@ typedef enum UnOpr { OPR_MINUS, OPR_NOT, OPR_LEN, OPR_NOUNOPR } UnOpr; | |||
44 | 44 | ||
45 | #define luaK_jumpto(fs,t) luaK_patchlist(fs, luaK_jump(fs), t) | 45 | #define luaK_jumpto(fs,t) luaK_patchlist(fs, luaK_jump(fs), t) |
46 | 46 | ||
47 | LUAI_FUNC void luaK_codek (FuncState *fs, int reg, int k); | ||
47 | LUAI_FUNC int luaK_codeABx (FuncState *fs, OpCode o, int A, unsigned int Bx); | 48 | LUAI_FUNC int luaK_codeABx (FuncState *fs, OpCode o, int A, unsigned int Bx); |
48 | LUAI_FUNC int luaK_codeABC (FuncState *fs, OpCode o, int A, int B, int C); | 49 | LUAI_FUNC int luaK_codeABC (FuncState *fs, OpCode o, int A, int B, int C); |
49 | LUAI_FUNC void luaK_fixline (FuncState *fs, int line); | 50 | LUAI_FUNC void luaK_fixline (FuncState *fs, int line); |