summaryrefslogtreecommitdiff
path: root/lobject.h
diff options
context:
space:
mode:
Diffstat (limited to 'lobject.h')
-rw-r--r--lobject.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/lobject.h b/lobject.h
index 9177f03c..d2abaa1b 100644
--- a/lobject.h
+++ b/lobject.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lobject.h,v 1.16 1998/01/19 19:49:22 roberto Exp roberto $ 2** $Id: lobject.h,v 1.17 1998/03/06 16:54:42 roberto Exp $
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*/
@@ -13,6 +13,17 @@
13#include "lua.h" 13#include "lua.h"
14 14
15 15
16#ifdef DEBUG
17#include "lauxlib.h"
18#define LUA_INTERNALERROR(s) \
19 luaL_verror("INTERNAL ERROR - %s [%s:%d]",(s),__FILE__,__LINE__)
20#define LUA_ASSERT(c,s) { if (!(c)) LUA_INTERNALERROR(s); }
21#else
22#define LUA_INTERNALERROR(s) /* empty */
23#define LUA_ASSERT(c,s) /* empty */
24#endif
25
26
16/* 27/*
17** "real" is the type "number" of Lua 28** "real" is the type "number" of Lua
18** GREP LUA_NUMBER to change that 29** GREP LUA_NUMBER to change that