aboutsummaryrefslogtreecommitdiff
path: root/src/macros_and_utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/macros_and_utils.h')
-rw-r--r--src/macros_and_utils.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/macros_and_utils.h b/src/macros_and_utils.h
index 05a46b5..e184476 100644
--- a/src/macros_and_utils.h
+++ b/src/macros_and_utils.h
@@ -6,6 +6,7 @@
6 6
7#include "lua.h" 7#include "lua.h"
8#include "lualib.h" 8#include "lualib.h"
9#include "lauxlib.h"
9 10
10 // M$ compiler doesn't support 'inline' keyword in C files... 11 // M$ compiler doesn't support 'inline' keyword in C files...
11#if defined( _MSC_VER) 12#if defined( _MSC_VER)
@@ -81,7 +82,11 @@ extern char const* debugspew_indent;
81 82
82#define ASSERT_L(c) _ASSERT_L(L,c) 83#define ASSERT_L(c) _ASSERT_L(L,c)
83 84
84#define STACK_GROW( L, n) do { if (!lua_checkstack(L,(int)(n))) luaL_error( L, "Cannot grow stack!" ); } while( 0) 85inline void STACK_GROW(lua_State * L, int n_)
86{
87 if (!lua_checkstack(L, n_))
88 luaL_error(L, "Cannot grow stack!");
89}
85 90
86// non-string keyed registry access 91// non-string keyed registry access
87#define REGISTRY_SET( L, key_, value_) \ 92#define REGISTRY_SET( L, key_, value_) \