Skip to content

Commit a55f0e1

Browse files
author
benpop
committed
remove debug function
1 parent 8ca19c5 commit a55f0e1

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

int64.c

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -183,16 +183,6 @@ LUALIB_API int luaL_pointeris64 (lua_State *L) {
183183
*/
184184

185185

186-
static void dumpstack (lua_State *L) {
187-
int i, top = lua_gettop(L);
188-
luaL_checkstack(L, top + top + 1, "too many items to print");
189-
lua_getglobal(L, "print");
190-
for (i = 1; i <= top; i++)
191-
lua_pushvalue(L, i);
192-
lua_call(L, top, 0);
193-
}
194-
195-
196186
#define ltag_to_ltoi_error(tt) ((tt) + 2)
197187

198188
#define LTOI_ERRMSG(type) "cannot convert " type " to int64"
@@ -693,7 +683,6 @@ static int obj64_compare (lua_State *L, int op) {
693683
obj64 *o;
694684
int other;
695685
int errcode;
696-
dumpstack(L);
697686
switch (lua_type(L, 1)) {
698687
case LUA_TUSERDATA: {
699688
other = 2;
@@ -808,10 +797,8 @@ static uint64_t u_arith (int op, uint64_t a, uint64_t b) {
808797

809798

810799
static int obj64_arith (lua_State *L, int op) {
811-
/* obj64 *o = toInt64(L); */
812800
obj64 *o;
813801
int errcode;
814-
dumpstack(L);
815802
o = toInt64(L);
816803
if (o->_unsigned) {
817804
uint64_t u = luaL_tou64be(L, 2, 0, &errcode);

0 commit comments

Comments
 (0)