aboutsummaryrefslogtreecommitdiff
path: root/lobject.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-05-06 12:51:41 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-05-06 12:51:41 -0300
commit0dbf0c5953a3d72deebc7e41840a0e73b46de8bc (patch)
treeb4a525660cba017d7985c37393f50d6b8bee9e4b /lobject.h
parent85dcb411a8454de0bc1c2c60a24af1588e436c23 (diff)
downloadlua-0dbf0c5953a3d72deebc7e41840a0e73b46de8bc.tar.gz
lua-0dbf0c5953a3d72deebc7e41840a0e73b46de8bc.tar.bz2
lua-0dbf0c5953a3d72deebc7e41840a0e73b46de8bc.zip
new format for test intructions (handle NaN correctly)
Diffstat (limited to 'lobject.h')
-rw-r--r--lobject.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/lobject.h b/lobject.h
index a7286927..6637631a 100644
--- a/lobject.h
+++ b/lobject.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lobject.h,v 1.128 2002/03/25 17:47:14 roberto Exp roberto $ 2** $Id: lobject.h,v 1.129 2002/04/05 18:54:31 roberto Exp roberto $
3** Type definitions for Lua objects 3** Type definitions for Lua objects
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -230,6 +230,15 @@ typedef struct Table {
230#define sizearray(t) ((t)->sizearray) 230#define sizearray(t) ((t)->sizearray)
231 231
232 232
233/*
234** masks for comparison results
235*/
236#define CMP_EQ 1
237#define CMP_LT 2
238#define CMP_GT 4
239#define CMP_N 8 /* not comparable values (e.g. NaN) */
240
241
233extern const TObject luaO_nilobject; 242extern const TObject luaO_nilobject;
234 243
235int luaO_log2 (unsigned int x); 244int luaO_log2 (unsigned int x);