如何編譯luabind支持vs2010之後所有版本
阿新 • • 發佈:2019-03-08
rec .com sig detailed bin lua rip war bject
步驟
- 下載https://github.com/luabind/luabind/tree/0.9。 其最後一次commit為
Revision: 8c66030818f0eacbb7356c16776539b55d8c5319
Author: Peter Colberg <[email protected]>
Date: 12/24/2011 1:53:29 AM
Message:
Lua 5.2: use new macro lua_pushglobaltableThis macro is not mentioned in the Lua 5.2 manual.
----
Modified: luabind/object.hpp - 添加#include "luabind_compatibility.hpp",內容為
-
/* @Author Sygn (https://github.com/sygn-jp) This file is from https://github.com/sygh-JP/CompactLua . Detailed descriptions could be found at the author‘s blog: http://sygh.hatenadiary.jp/entry/2014/06/22/000456 (Japanese only). */ #pragma
- 為config。h,和lua_include.hpp 添加#include "luabind_compatibility.hpp"
- 在policy。hpp添加
-
LUABIND_NUMBER_CONVERTER(long double, number) LUABIND_NUMBER_CONVERTER(__int64, number) LUABIND_NUMBER_CONVERTER(unsigned __int64, number)
如何編譯luabind支持vs2010之後所有版本