Browse Source

export 'lua_ident' to avoid it being removed by C++ linker

Roberto Ierusalimschy 12 năm trước cách đây
mục cha
commit
70b0ee6310
1 tập tin đã thay đổi với 6 bổ sung1 xóa
  1. 6 1
      lua.h

+ 6 - 1
lua.h

@@ -1,5 +1,5 @@
 /*
-** $Id: lua.h,v 1.283 2012/04/20 13:18:26 roberto Exp roberto $
+** $Id: lua.h,v 1.284 2013/02/19 18:39:04 roberto Exp roberto $
 ** Lua - A Scripting Language
 ** Lua.org, PUC-Rio, Brazil (http://www.lua.org)
 ** See Copyright Notice at the end of this file
@@ -119,6 +119,11 @@ typedef LUA_UNSIGNED lua_Unsigned;
 #endif
 
 
+/*
+** RCS ident string
+*/
+extern const char lua_ident[];
+
 
 /*
 ** state manipulation