diff options
Diffstat (limited to 'lib/lua/include/lauxlib.h')
-rw-r--r-- | lib/lua/include/lauxlib.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/lua/include/lauxlib.h b/lib/lua/include/lauxlib.h index 3d3610f..da4576b 100644 --- a/lib/lua/include/lauxlib.h +++ b/lib/lua/include/lauxlib.h @@ -1,5 +1,5 @@ /*
-** $Id: lauxlib.h,v 1.1 2003-11-06 11:56:07 pixel Exp $
+** $Id: lauxlib.h,v 1.2 2003-11-07 12:57:58 pixel Exp $
** Auxiliary functions for building Lua libraries
** See Copyright Notice in lua.h
*/
@@ -14,13 +14,14 @@ #include "lua.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
#ifndef LUALIB_API
#define LUALIB_API LUA_API
#endif
-
-
typedef struct luaL_reg {
const char *name;
lua_CFunction func;
@@ -139,6 +140,9 @@ LUALIB_API int lua_dobuffer (lua_State *L, const char *buff, size_t sz, #define luaL_opt_int luaL_optint
#define luaL_opt_long luaL_optlong
+#ifdef __cplusplus
+}
+#endif
#endif
|