mirror of
https://github.com/lua/lua.git
synced 2025-02-04 06:13:04 +08:00
'pushnum' pushes a "number" (float) + new C instruction 'pushint'
This commit is contained in:
parent
0233ce0815
commit
0ce3018109
5
ltests.c
5
ltests.c
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
** $Id: ltests.c,v 2.136 2013/04/24 19:41:48 roberto Exp roberto $
|
** $Id: ltests.c,v 2.137 2013/04/26 13:07:53 roberto Exp roberto $
|
||||||
** Internal Module for Debugging of the Lua Implementation
|
** Internal Module for Debugging of the Lua Implementation
|
||||||
** See Copyright Notice in lua.h
|
** See Copyright Notice in lua.h
|
||||||
*/
|
*/
|
||||||
@ -1109,6 +1109,9 @@ static int runC (lua_State *L, lua_State *L1, const char *pc) {
|
|||||||
lua_pop(L1, getnum);
|
lua_pop(L1, getnum);
|
||||||
}
|
}
|
||||||
else if EQ("pushnum") {
|
else if EQ("pushnum") {
|
||||||
|
lua_pushnumber(L1, (lua_Number)getnum);
|
||||||
|
}
|
||||||
|
else if EQ("pushint") {
|
||||||
lua_pushinteger(L1, getnum);
|
lua_pushinteger(L1, getnum);
|
||||||
}
|
}
|
||||||
else if EQ("pushstring") {
|
else if EQ("pushstring") {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user