锘??xml version="1.0" encoding="utf-8" standalone="yes"?>久久久国际精品,欧美一区二区视频在线,香港久久久电影http://m.shnenglu.com/wc250en007/category/17338.html鍓嶈繘鐨勮礬涓?/description>zh-cnMon, 18 Jul 2011 14:00:33 GMTMon, 18 Jul 2011 14:00:33 GMT60luaplus鑴氭湰涓嬌鐢ㄦ垚鍛樺嚱鏁?/title><link>http://m.shnenglu.com/wc250en007/archive/2011/07/18/151300.html</link><dc:creator>Let me see see</dc:creator><author>Let me see see</author><pubDate>Mon, 18 Jul 2011 05:27:00 GMT</pubDate><guid>http://m.shnenglu.com/wc250en007/archive/2011/07/18/151300.html</guid><wfw:comment>http://m.shnenglu.com/wc250en007/comments/151300.html</wfw:comment><comments>http://m.shnenglu.com/wc250en007/archive/2011/07/18/151300.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.shnenglu.com/wc250en007/comments/commentRss/151300.html</wfw:commentRss><trackback:ping>http://m.shnenglu.com/wc250en007/services/trackbacks/151300.html</trackback:ping><description><![CDATA[<div>鍦ㄨ剼鏈腑浣跨敤綾葷殑鎴愬憳鍑芥暟 <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><img src="http://m.shnenglu.com/images/OutliningIndicators/None.gif" align="top" alt="" /><span style="color: #000000">#include </span><span style="color: #000000">"</span><span style="color: #000000">luaplus.h</span><span style="color: #000000">"</span><span style="color: #000000"><br /><img src="http://m.shnenglu.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #0000ff">using</span><span style="color: #000000"> </span><span style="color: #0000ff">namespace</span><span style="color: #000000"> LuaPlus;<br /><img src="http://m.shnenglu.com/images/OutliningIndicators/None.gif" align="top" alt="" /><br /><img src="http://m.shnenglu.com/images/OutliningIndicators/None.gif" align="top" alt="" />template</span><span style="color: #000000"><</span><span style="color: #000000"> </span><span style="color: #0000ff">class</span><span style="color: #000000"> T </span><span style="color: #000000">></span><span style="color: #000000"><br /><img src="http://m.shnenglu.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #0000ff">class</span><span style="color: #000000"> LuaExport<br /><img id="Codehighlighter1_83_1148_Open_Image" onclick="this.style.display='none'; Codehighlighter1_83_1148_Open_Text.style.display='none'; Codehighlighter1_83_1148_Closed_Image.style.display='inline'; Codehighlighter1_83_1148_Closed_Text.style.display='inline';" src="http://m.shnenglu.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top"><img id="Codehighlighter1_83_1148_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_83_1148_Closed_Text.style.display='none'; Codehighlighter1_83_1148_Open_Image.style.display='inline'; Codehighlighter1_83_1148_Open_Text.style.display='inline';" src="http://m.shnenglu.com/images/OutliningIndicators/ContractedBlock.gif" align="top"></span><span id="Codehighlighter1_83_1148_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://m.shnenglu.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_83_1148_Open_Text"><span style="color: #000000">{<br /><img src="http://m.shnenglu.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" /></span><span style="color: #0000ff">public</span><span style="color: #000000">:<br /><img src="http://m.shnenglu.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />    LuaExport(</span><span style="color: #0000ff">const</span><span style="color: #000000"> </span><span style="color: #0000ff">char</span><span style="color: #000000">*</span><span style="color: #000000"> pszName, LuaPlus::LuaState</span><span style="color: #000000">*</span><span style="color: #000000"> pState </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #000000">0</span><span style="color: #000000">)<br /><img id="Codehighlighter1_157_598_Open_Image" onclick="this.style.display='none'; Codehighlighter1_157_598_Open_Text.style.display='none'; Codehighlighter1_157_598_Closed_Image.style.display='inline'; Codehighlighter1_157_598_Closed_Text.style.display='inline';" src="http://m.shnenglu.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top"><img id="Codehighlighter1_157_598_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_157_598_Closed_Text.style.display='none'; Codehighlighter1_157_598_Open_Image.style.display='inline'; Codehighlighter1_157_598_Open_Text.style.display='inline';" src="http://m.shnenglu.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top">    </span><span id="Codehighlighter1_157_598_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://m.shnenglu.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_157_598_Open_Text"><span style="color: #000000">{ <br /><img src="http://m.shnenglu.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />        </span><span style="color: #008000">//</span><span style="color: #008000">TDAssert(s_pMe == 0);</span><span style="color: #008000"><br /><img src="http://m.shnenglu.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" /></span><span style="color: #000000">        s_pMe </span><span style="color: #000000">=</span><span style="color: #000000"> static_cast</span><span style="color: #000000"><</span><span style="color: #000000"> T</span><span style="color: #000000">*</span><span style="color: #000000"> </span><span style="color: #000000">></span><span style="color: #000000">(</span><span style="color: #0000ff">this</span><span style="color: #000000">);<br /><img src="http://m.shnenglu.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" /><br /><img src="http://m.shnenglu.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />        LuaPlus::LuaState</span><span style="color: #000000">*</span><span style="color: #000000"> theState </span><span style="color: #000000">=</span><span style="color: #000000"> pState; </span><span style="color: #008000">//</span><span style="color: #008000">? pState : CScriptSystem::_GetLuaState();</span><span style="color: #008000"><br /><img src="http://m.shnenglu.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" /></span><span style="color: #000000"><br /><img src="http://m.shnenglu.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />        s_pMetaTable </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #0000ff">new</span><span style="color: #000000"> LuaPlus::LuaObject;<br /><img src="http://m.shnenglu.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />        </span><span style="color: #000000">*</span><span style="color: #000000">s_pMetaTable </span><span style="color: #000000">=</span><span style="color: #000000"> theState</span><span style="color: #000000">-></span><span style="color: #000000">GetGlobals().CreateTable(pszName);<br /><img src="http://m.shnenglu.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />        s_pMetaTable</span><span style="color: #000000">-></span><span style="color: #000000">SetObject(</span><span style="color: #000000">"</span><span style="color: #000000">__index</span><span style="color: #000000">"</span><span style="color: #000000">, </span><span style="color: #000000">*</span><span style="color: #000000">s_pMetaTable);<br /><img src="http://m.shnenglu.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" /><br /><img src="http://m.shnenglu.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />        LuaObject obj </span><span style="color: #000000">=</span><span style="color: #000000"> theState</span><span style="color: #000000">-></span><span style="color: #000000">BoxPointer(s_pMe);<br /><img src="http://m.shnenglu.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />        obj.SetMetaTable(</span><span style="color: #000000">*</span><span style="color: #000000">s_pMetaTable);<br /><img src="http://m.shnenglu.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />        theState</span><span style="color: #000000">-></span><span style="color: #000000">GetGlobals().SetObject(pszName, obj);<br /><img src="http://m.shnenglu.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" alt="" />    }</span></span><span style="color: #000000"><br /><img src="http://m.shnenglu.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" /><br /><img src="http://m.shnenglu.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />    </span><span style="color: #0000ff">virtual</span><span style="color: #000000"> </span><span style="color: #000000">~</span><span style="color: #000000">LuaExport()<br /><img id="Codehighlighter1_624_681_Open_Image" onclick="this.style.display='none'; Codehighlighter1_624_681_Open_Text.style.display='none'; Codehighlighter1_624_681_Closed_Image.style.display='inline'; Codehighlighter1_624_681_Closed_Text.style.display='inline';" src="http://m.shnenglu.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top"><img id="Codehighlighter1_624_681_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_624_681_Closed_Text.style.display='none'; Codehighlighter1_624_681_Open_Image.style.display='inline'; Codehighlighter1_624_681_Open_Text.style.display='inline';" src="http://m.shnenglu.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top">    </span><span id="Codehighlighter1_624_681_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://m.shnenglu.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_624_681_Open_Text"><span style="color: #000000">{<br /><img src="http://m.shnenglu.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />        delete s_pMetaTable; s_pMetaTable </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #000000">0</span><span style="color: #000000">;<br /><img src="http://m.shnenglu.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />        s_pMe </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #000000">0</span><span style="color: #000000">;<br /><img src="http://m.shnenglu.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" alt="" />    }</span></span><span style="color: #000000"><br /><img src="http://m.shnenglu.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" /><br /><img src="http://m.shnenglu.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />    template </span><span style="color: #000000"><</span><span style="color: #0000ff">class</span><span style="color: #000000"> Callee</span><span style="color: #000000">></span><span style="color: #000000"><br /><img src="http://m.shnenglu.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />    </span><span style="color: #0000ff">void</span><span style="color: #000000"> RegisterFunction(</span><span style="color: #0000ff">const</span><span style="color: #000000"> </span><span style="color: #0000ff">char</span><span style="color: #000000">*</span><span style="color: #000000"> pszFuncName, </span><span style="color: #0000ff">int</span><span style="color: #000000"> (Callee::</span><span style="color: #000000">*</span><span style="color: #000000">func)(LuaPlus::LuaState</span><span style="color: #000000">*</span><span style="color: #000000">))<br /><img id="Codehighlighter1_799_860_Open_Image" onclick="this.style.display='none'; Codehighlighter1_799_860_Open_Text.style.display='none'; Codehighlighter1_799_860_Closed_Image.style.display='inline'; Codehighlighter1_799_860_Closed_Text.style.display='inline';" src="http://m.shnenglu.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top"><img id="Codehighlighter1_799_860_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_799_860_Closed_Text.style.display='none'; Codehighlighter1_799_860_Open_Image.style.display='inline'; Codehighlighter1_799_860_Open_Text.style.display='inline';" src="http://m.shnenglu.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top">    </span><span id="Codehighlighter1_799_860_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://m.shnenglu.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_799_860_Open_Text"><span style="color: #000000">{<br /><img src="http://m.shnenglu.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />        s_pMetaTable</span><span style="color: #000000">-></span><span style="color: #000000">RegisterObjectFunctor(pszFuncName, func);<br /><img src="http://m.shnenglu.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" alt="" />    }</span></span><span style="color: #000000"><br /><img src="http://m.shnenglu.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" /><br /><img src="http://m.shnenglu.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />    </span><span style="color: #008000">//</span><span style="color: #008000">鍙栧緱鑷繁</span><span style="color: #008000"><br /><img id="Codehighlighter1_895_911_Open_Image" onclick="this.style.display='none'; Codehighlighter1_895_911_Open_Text.style.display='none'; Codehighlighter1_895_911_Closed_Image.style.display='inline'; Codehighlighter1_895_911_Closed_Text.style.display='inline';" src="http://m.shnenglu.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top"><img id="Codehighlighter1_895_911_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_895_911_Closed_Text.style.display='none'; Codehighlighter1_895_911_Open_Image.style.display='inline'; Codehighlighter1_895_911_Open_Text.style.display='inline';" src="http://m.shnenglu.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top"></span><span style="color: #000000">    </span><span style="color: #0000ff">static</span><span style="color: #000000"> T</span><span style="color: #000000">*</span><span style="color: #000000"> GetMe(</span><span style="color: #0000ff">void</span><span style="color: #000000">)  </span><span id="Codehighlighter1_895_911_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://m.shnenglu.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_895_911_Open_Text"><span style="color: #000000">{ </span><span style="color: #0000ff">return</span><span style="color: #000000"> s_pMe; }</span></span><span style="color: #000000"><br /><img src="http://m.shnenglu.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" /><br /><img src="http://m.shnenglu.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" /></span><span style="color: #0000ff">protected</span><span style="color: #000000">:<br /><img src="http://m.shnenglu.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />    </span><span style="color: #0000ff">static</span><span style="color: #000000"> T</span><span style="color: #000000">*</span><span style="color: #000000">                    s_pMe;            </span><span style="color: #008000">//</span><span style="color: #008000">鑷韓瀹炰緥錛屽叏灞鍙橀噺</span><span style="color: #008000"><br /><img src="http://m.shnenglu.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" /></span><span style="color: #000000">    </span><span style="color: #0000ff">static</span><span style="color: #000000"> LuaPlus::LuaObject</span><span style="color: #000000">*</span><span style="color: #000000">    s_pMetaTable;    </span><span style="color: #008000">//</span><span style="color: #008000">MetaTable</span><span style="color: #008000"><br /><img src="http://m.shnenglu.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" /></span><span style="color: #000000"><br /><img src="http://m.shnenglu.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" /></span><span style="color: #0000ff">private</span><span style="color: #000000">:<br /><img src="http://m.shnenglu.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />    </span><span style="color: #008000">//</span><span style="color: #008000"> unimplemented constructors / assignment</span><span style="color: #008000"><br /><img src="http://m.shnenglu.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" /></span><span style="color: #000000">    LuaExport(</span><span style="color: #0000ff">const</span><span style="color: #000000"> LuaExport</span><span style="color: #000000">&</span><span style="color: #000000"> obj);<br /><img src="http://m.shnenglu.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />    LuaExport</span><span style="color: #000000">&</span><span style="color: #000000"> </span><span style="color: #0000ff">operator</span><span style="color: #000000">=</span><span style="color: #000000">(</span><span style="color: #0000ff">const</span><span style="color: #000000"> LuaExport</span><span style="color: #000000">&</span><span style="color: #000000"> obj);<br /><img src="http://m.shnenglu.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" alt="" />}</span></span><span style="color: #000000">;<br /><img src="http://m.shnenglu.com/images/OutliningIndicators/None.gif" align="top" alt="" /><br /><img src="http://m.shnenglu.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #0000ff">extern</span><span style="color: #000000"> LuaPlus::LuaState</span><span style="color: #000000">*</span><span style="color: #000000"> GetLuaState();</span></div><br />// 嫻嬭瘯main.cpp<br /><br /> <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><img src="http://m.shnenglu.com/images/OutliningIndicators/None.gif" align="top" alt="" /><span style="color: #0000ff">class</span><span style="color: #000000"> player : </span><span style="color: #0000ff">public</span><span style="color: #000000"> LuaExport</span><span style="color: #000000"><</span><span style="color: #000000"> player </span><span style="color: #000000">></span><span style="color: #000000"><br /><img id="Codehighlighter1_42_652_Open_Image" onclick="this.style.display='none'; Codehighlighter1_42_652_Open_Text.style.display='none'; Codehighlighter1_42_652_Closed_Image.style.display='inline'; Codehighlighter1_42_652_Closed_Text.style.display='inline';" src="http://m.shnenglu.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top"><img id="Codehighlighter1_42_652_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_42_652_Closed_Text.style.display='none'; Codehighlighter1_42_652_Open_Image.style.display='inline'; Codehighlighter1_42_652_Open_Text.style.display='inline';" src="http://m.shnenglu.com/images/OutliningIndicators/ContractedBlock.gif" align="top"></span><span id="Codehighlighter1_42_652_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://m.shnenglu.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_42_652_Open_Text"><span style="color: #000000">{<br /><img src="http://m.shnenglu.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" /></span><span style="color: #0000ff">public</span><span style="color: #000000">:<br /><img src="http://m.shnenglu.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />    player():<br /><img src="http://m.shnenglu.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />      LuaExport</span><span style="color: #000000"><</span><span style="color: #000000"> player </span><span style="color: #000000">></span><span style="color: #000000">( </span><span style="color: #000000">"</span><span style="color: #000000">pp</span><span style="color: #000000">"</span><span style="color: #000000">, GetLuaState() )<br /><img id="Codehighlighter1_112_118_Open_Image" onclick="this.style.display='none'; Codehighlighter1_112_118_Open_Text.style.display='none'; Codehighlighter1_112_118_Closed_Image.style.display='inline'; Codehighlighter1_112_118_Closed_Text.style.display='inline';" src="http://m.shnenglu.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top"><img id="Codehighlighter1_112_118_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_112_118_Closed_Text.style.display='none'; Codehighlighter1_112_118_Open_Image.style.display='inline'; Codehighlighter1_112_118_Open_Text.style.display='inline';" src="http://m.shnenglu.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top">      </span><span id="Codehighlighter1_112_118_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://m.shnenglu.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_112_118_Open_Text"><span style="color: #000000">{<br /><img src="http://m.shnenglu.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" /><br /><img src="http://m.shnenglu.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" alt="" />      }</span></span><span style="color: #000000"><br /><img src="http://m.shnenglu.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" /><br /><img src="http://m.shnenglu.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />      </span><span style="color: #0000ff">int</span><span style="color: #000000"> LS_PrintNumber(LuaState</span><span style="color: #000000">*</span><span style="color: #000000"> state)<br /><img id="Codehighlighter1_163_379_Open_Image" onclick="this.style.display='none'; Codehighlighter1_163_379_Open_Text.style.display='none'; Codehighlighter1_163_379_Closed_Image.style.display='inline'; Codehighlighter1_163_379_Closed_Text.style.display='inline';" src="http://m.shnenglu.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top"><img id="Codehighlighter1_163_379_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_163_379_Closed_Text.style.display='none'; Codehighlighter1_163_379_Open_Image.style.display='inline'; Codehighlighter1_163_379_Open_Text.style.display='inline';" src="http://m.shnenglu.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top">      </span><span id="Codehighlighter1_163_379_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://m.shnenglu.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_163_379_Open_Text"><span style="color: #000000">{<br /><img src="http://m.shnenglu.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />          LuaStack args(state);<br /><img src="http://m.shnenglu.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" /><br /><img id="Codehighlighter1_220_269_Open_Image" onclick="this.style.display='none'; Codehighlighter1_220_269_Open_Text.style.display='none'; Codehighlighter1_220_269_Closed_Image.style.display='inline'; Codehighlighter1_220_269_Closed_Text.style.display='inline';" src="http://m.shnenglu.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top"><img id="Codehighlighter1_220_269_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_220_269_Closed_Text.style.display='none'; Codehighlighter1_220_269_Open_Image.style.display='inline'; Codehighlighter1_220_269_Open_Text.style.display='inline';" src="http://m.shnenglu.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top">          </span><span style="color: #0000ff">if</span><span style="color: #000000"> (args[</span><span style="color: #000000">2</span><span style="color: #000000">].IsNumber()) </span><span id="Codehighlighter1_220_269_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://m.shnenglu.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_220_269_Open_Text"><span style="color: #000000">{<br /><img src="http://m.shnenglu.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />              printf(</span><span style="color: #000000">"</span><span style="color: #000000">%f\n</span><span style="color: #000000">"</span><span style="color: #000000">, args[</span><span style="color: #000000">2</span><span style="color: #000000">].GetNumber());<br /><img src="http://m.shnenglu.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" alt="" />          }</span></span><span style="color: #000000"><br /><img src="http://m.shnenglu.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />          </span><span style="color: #0000ff">else</span><span style="color: #000000"> </span><span style="color: #0000ff">if</span><span style="color: #000000"> ( args[</span><span style="color: #000000">2</span><span style="color: #000000">].IsString() )<br /><img id="Codehighlighter1_310_360_Open_Image" onclick="this.style.display='none'; Codehighlighter1_310_360_Open_Text.style.display='none'; Codehighlighter1_310_360_Closed_Image.style.display='inline'; Codehighlighter1_310_360_Closed_Text.style.display='inline';" src="http://m.shnenglu.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top"><img id="Codehighlighter1_310_360_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_310_360_Closed_Text.style.display='none'; Codehighlighter1_310_360_Open_Image.style.display='inline'; Codehighlighter1_310_360_Open_Text.style.display='inline';" src="http://m.shnenglu.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top">          </span><span id="Codehighlighter1_310_360_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://m.shnenglu.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_310_360_Open_Text"><span style="color: #000000">{<br /><img src="http://m.shnenglu.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />              printf(</span><span style="color: #000000">"</span><span style="color: #000000">%s\n</span><span style="color: #000000">"</span><span style="color: #000000">, args[</span><span style="color: #000000">2</span><span style="color: #000000">].GetString() );<br /><img src="http://m.shnenglu.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" alt="" />          }</span></span><span style="color: #000000"><br /><img src="http://m.shnenglu.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />          </span><span style="color: #0000ff">return</span><span style="color: #000000"> </span><span style="color: #000000">0</span><span style="color: #000000">;<br /><img src="http://m.shnenglu.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" alt="" />      }</span></span><span style="color: #000000"><br /><img src="http://m.shnenglu.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />      </span><span style="color: #0000ff">int</span><span style="color: #000000"> UI_SetTipText( lua_State </span><span style="color: #000000">*</span><span style="color: #000000">state )<br /><img id="Codehighlighter1_425_649_Open_Image" onclick="this.style.display='none'; Codehighlighter1_425_649_Open_Text.style.display='none'; Codehighlighter1_425_649_Closed_Image.style.display='inline'; Codehighlighter1_425_649_Closed_Text.style.display='inline';" src="http://m.shnenglu.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top"><img id="Codehighlighter1_425_649_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_425_649_Closed_Text.style.display='none'; Codehighlighter1_425_649_Open_Image.style.display='inline'; Codehighlighter1_425_649_Open_Text.style.display='inline';" src="http://m.shnenglu.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top">      </span><span id="Codehighlighter1_425_649_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://m.shnenglu.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_425_649_Open_Text"><span style="color: #000000">{<br /><img src="http://m.shnenglu.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />          LuaStack args(state);<br /><img src="http://m.shnenglu.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />          </span><span style="color: #0000ff">if</span><span style="color: #000000"> ( args[</span><span style="color: #000000">2</span><span style="color: #000000">].IsString() )<br /><img id="Codehighlighter1_487_629_Open_Image" onclick="this.style.display='none'; Codehighlighter1_487_629_Open_Text.style.display='none'; Codehighlighter1_487_629_Closed_Image.style.display='inline'; Codehighlighter1_487_629_Closed_Text.style.display='inline';" src="http://m.shnenglu.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top"><img id="Codehighlighter1_487_629_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_487_629_Closed_Text.style.display='none'; Codehighlighter1_487_629_Open_Image.style.display='inline'; Codehighlighter1_487_629_Open_Text.style.display='inline';" src="http://m.shnenglu.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top">          </span><span id="Codehighlighter1_487_629_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://m.shnenglu.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_487_629_Open_Text"><span style="color: #000000">{<br /><img src="http://m.shnenglu.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />              </span><span style="color: #0000ff">const</span><span style="color: #000000"> </span><span style="color: #0000ff">char</span><span style="color: #000000"> </span><span style="color: #000000">*</span><span style="color: #000000">szData </span><span style="color: #000000">=</span><span style="color: #000000"> args[</span><span style="color: #000000">2</span><span style="color: #000000">].GetString();</span><span style="color: #008000">//</span><span style="color: #008000">lua_tostring(state, 1);</span><span style="color: #008000"><br /><img src="http://m.shnenglu.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" /></span><span style="color: #000000">              </span><span style="color: #0000ff">if</span><span style="color: #000000">( szData )<br /><img id="Codehighlighter1_584_623_Open_Image" onclick="this.style.display='none'; Codehighlighter1_584_623_Open_Text.style.display='none'; Codehighlighter1_584_623_Closed_Image.style.display='inline'; Codehighlighter1_584_623_Closed_Text.style.display='inline';" src="http://m.shnenglu.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top"><img id="Codehighlighter1_584_623_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_584_623_Closed_Text.style.display='none'; Codehighlighter1_584_623_Open_Image.style.display='inline'; Codehighlighter1_584_623_Open_Text.style.display='inline';" src="http://m.shnenglu.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top">              </span><span id="Codehighlighter1_584_623_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://m.shnenglu.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_584_623_Open_Text"><span style="color: #000000">{<br /><img src="http://m.shnenglu.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />                  printf(</span><span style="color: #000000">"</span><span style="color: #000000">%s\n</span><span style="color: #000000">"</span><span style="color: #000000">, szData );<br /><img src="http://m.shnenglu.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" alt="" />              }</span></span><span style="color: #000000"><br /><img src="http://m.shnenglu.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" alt="" />          }</span></span><span style="color: #000000"><br /><img src="http://m.shnenglu.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" /><br /><img src="http://m.shnenglu.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />          </span><span style="color: #0000ff">return</span><span style="color: #000000"> </span><span style="color: #000000">0</span><span style="color: #000000">;<br /><img src="http://m.shnenglu.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" alt="" />      }</span></span><span style="color: #000000"><br /><img src="http://m.shnenglu.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" /><br /><img src="http://m.shnenglu.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" alt="" />}</span></span><span style="color: #000000">;<br /><img src="http://m.shnenglu.com/images/OutliningIndicators/None.gif" align="top" alt="" /><br /><img src="http://m.shnenglu.com/images/OutliningIndicators/None.gif" align="top" alt="" /><br /><img src="http://m.shnenglu.com/images/OutliningIndicators/None.gif" align="top" alt="" />player</span><span style="color: #000000">*</span><span style="color: #000000">    LuaExport</span><span style="color: #000000"><</span><span style="color: #000000"> player </span><span style="color: #000000">></span><span style="color: #000000">::s_pMe </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #000000">0</span><span style="color: #000000">;<br /><img src="http://m.shnenglu.com/images/OutliningIndicators/None.gif" align="top" alt="" />LuaPlus::LuaObject</span><span style="color: #000000">*</span><span style="color: #000000"> LuaExport</span><span style="color: #000000"><</span><span style="color: #000000"> player </span><span style="color: #000000">></span><span style="color: #000000">::s_pMetaTable </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #000000">0</span><span style="color: #000000">;<br /><img src="http://m.shnenglu.com/images/OutliningIndicators/None.gif" align="top" alt="" /><br /><img src="http://m.shnenglu.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #0000ff">int</span><span style="color: #000000"> _tmain(</span><span style="color: #0000ff">int</span><span style="color: #000000"> argc, _TCHAR</span><span style="color: #000000">*</span><span style="color: #000000"> argv[])<br /><img id="Codehighlighter1_794_1147_Open_Image" onclick="this.style.display='none'; Codehighlighter1_794_1147_Open_Text.style.display='none'; Codehighlighter1_794_1147_Closed_Image.style.display='inline'; Codehighlighter1_794_1147_Closed_Text.style.display='inline';" src="http://m.shnenglu.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top"><img id="Codehighlighter1_794_1147_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_794_1147_Closed_Text.style.display='none'; Codehighlighter1_794_1147_Open_Image.style.display='inline'; Codehighlighter1_794_1147_Open_Text.style.display='inline';" src="http://m.shnenglu.com/images/OutliningIndicators/ContractedBlock.gif" align="top"></span><span id="Codehighlighter1_794_1147_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://m.shnenglu.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_794_1147_Open_Text"><span style="color: #000000">{<br /><img src="http://m.shnenglu.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />    player</span><span style="color: #000000">*</span><span style="color: #000000"> pPlayer </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #0000ff">new</span><span style="color: #000000"> player();<br /><img src="http://m.shnenglu.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />    pPlayer</span><span style="color: #000000">-></span><span style="color: #000000">RegisterFunction( </span><span style="color: #000000">"</span><span style="color: #000000">PrintNumber</span><span style="color: #000000">"</span><span style="color: #000000">, </span><span style="color: #000000">&</span><span style="color: #000000">player::LS_PrintNumber );<br /><img src="http://m.shnenglu.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />    pPlayer</span><span style="color: #000000">-></span><span style="color: #000000">RegisterFunction( </span><span style="color: #000000">"</span><span style="color: #000000">SetTips</span><span style="color: #000000">"</span><span style="color: #000000">, </span><span style="color: #000000">&</span><span style="color: #000000">player::LS_PrintNumber );<br /><img src="http://m.shnenglu.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />    </span><span style="color: #008000">//</span><span style="color: #008000"> Register your functions.</span><span style="color: #008000"><br /><img src="http://m.shnenglu.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" /></span><span style="color: #000000"><br /><img src="http://m.shnenglu.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />    </span><span style="color: #0000ff">int</span><span style="color: #000000"> nRet </span><span style="color: #000000">=</span><span style="color: #000000"> GetLuaState()</span><span style="color: #000000">-></span><span style="color: #000000">DoFile( </span><span style="color: #000000">"</span><span style="color: #000000">main.lua</span><span style="color: #000000">"</span><span style="color: #000000"> );<br /><img src="http://m.shnenglu.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />    </span><span style="color: #0000ff">if</span><span style="color: #000000"> (  nRet )<br /><img id="Codehighlighter1_1058_1122_Open_Image" onclick="this.style.display='none'; Codehighlighter1_1058_1122_Open_Text.style.display='none'; Codehighlighter1_1058_1122_Closed_Image.style.display='inline'; Codehighlighter1_1058_1122_Closed_Text.style.display='inline';" src="http://m.shnenglu.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top"><img id="Codehighlighter1_1058_1122_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_1058_1122_Closed_Text.style.display='none'; Codehighlighter1_1058_1122_Open_Image.style.display='inline'; Codehighlighter1_1058_1122_Open_Text.style.display='inline';" src="http://m.shnenglu.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top">    </span><span id="Codehighlighter1_1058_1122_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://m.shnenglu.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_1058_1122_Open_Text"><span style="color: #000000">{<br /><img src="http://m.shnenglu.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />        printf(</span><span style="color: #000000">"</span><span style="color: #000000">閿欒淇℃伅: %s</span><span style="color: #000000">"</span><span style="color: #000000">, GetLuaState()</span><span style="color: #000000">-></span><span style="color: #000000">StackTop().GetString());<br /><img src="http://m.shnenglu.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" alt="" />    }</span></span><span style="color: #000000"><br /><img src="http://m.shnenglu.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />    getchar();<br /><img src="http://m.shnenglu.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />    </span><span style="color: #0000ff">return</span><span style="color: #000000"> </span><span style="color: #000000">0</span><span style="color: #000000">;<br /><img src="http://m.shnenglu.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" alt="" />}</span></span></div><br />// main.lua<br />    <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><img src="http://m.shnenglu.com/images/OutliningIndicators/None.gif" align="top" alt="" /><span style="color: #000000">pp.PrintNumber(</span><span style="color: #000000">1000</span><span style="color: #000000">)<br /><img src="http://m.shnenglu.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span></div><br /><br />1.闇瑕佹敞鎰忕殑鏄紝綾葷殑鎴愬憳鍑芥暟涓殑鍙傛暟  榛樿絎竴涓負(fù)this<br />鎵浠?瑕佹椿寰楀弬鏁扮殑鏃跺?涓嬫爣榛樿鍔?<br /> if (args[2].IsNumber()) <br />{<br />     printf("%f\n", args[2].GetNumber());<br /> }<br /><br /><br /><br /></div><img src ="http://m.shnenglu.com/wc250en007/aggbug/151300.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.shnenglu.com/wc250en007/" target="_blank">Let me see see</a> 2011-07-18 13:27 <a href="http://m.shnenglu.com/wc250en007/archive/2011/07/18/151300.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>luaplus涓婃墜 (杞?http://m.shnenglu.com/wc250en007/archive/2011/07/18/151284.htmlLet me see seeLet me see seeMon, 18 Jul 2011 02:10:00 GMThttp://m.shnenglu.com/wc250en007/archive/2011/07/18/151284.htmlhttp://m.shnenglu.com/wc250en007/comments/151284.htmlhttp://m.shnenglu.com/wc250en007/archive/2011/07/18/151284.html#Feedback0http://m.shnenglu.com/wc250en007/comments/commentRss/151284.htmlhttp://m.shnenglu.com/wc250en007/services/trackbacks/151284.html

鐗堟潈鎵鏈?杞澆璇鋒敞鏄庡嚭澶?鍕跨敤浜庡晢涓氱敤閫?璋㈣阿!

浣滆?    澶у疂澶╁ぉ瑙?/span>

Blog:    http://m.shnenglu.com/singohgod

鏈漢姘村鉤鏈夐檺,鏈夐敊璇鋒寚鍑?嬈㈣繋浜ゆ祦,鍏卞悓榪涙!

 

 

鍥藉唴鍏充簬Lua鐨勮祫鏂欏疄鍦ㄦ槸澶皯,涓轟簡瀵繪壘涓涓悎閫傜殑Lua鐨?/span>C++灝佽,鐪熸槸濡傚悓澶ф搗鎹為拡.鍦ㄧ湅浜嗕紬澶氳祫鏂欏悗閿佸畾浠ヤ笅鍑犵:LuaBind ToLua++ LuaPlus.鍦ㄩ夋嫨涓婇鏈夎鍒虹殑鍛抽亾,LuaBind鐨勭増鏈彿榪樻病鍒?/span>1.0,鍔犱笂緗戝弸棰囨湁寰瘝,鏀懼純.ToLua++鏈潵鏈夋湅鍙嬫帹鑽?/span>,浣嗘槸鎬庝箞閮芥壘涓嶅埌涓嬭澆,瀹樼綉灝辨槸鎵撲笉寮,鏃犺禆鏀懼純.灝卞彧鏈?/span>LuaPlus浜?/span>,鐪嬪埌涓浜涗漢鐨勮瘎浠瘋繕琛?/span>,浜庢槸鍐沖畾灝辯敤瀹冨惂.

LuaPlus鐨勮祫鏂欏氨鏇村皯浜?/span>,榪炴庝箞閰嶇疆鎬庝箞璋冭瘯絳変粈涔堥兘娌℃湁,鍙湁娌愭灚澶у摜璁茶В浜嗚娉曟柟闈㈢殑涓綃囨枃绔?/span>.鍟婂摕,鎬庝箞鎼炲憿,闅鵑亾鍙堝彧鏈夌‖鐫澶寸毊涓婁簡?(鏌愪紵浜烘浘璇磋繃,浣嗗嚒鏉板嚭鐨勪簨閮芥槸紜潃澶寸毊騫插嚭鏉ユ淮)

濂戒簡,璦褰掓浼?/span>,涓嬮潰璁茶鎴戠殑緇忛獙鍚?/span>:

 

濡備綍緙栬瘧

1.       涓嬭澆

棣栧厛鍒板畼鏂圭綉绔欎笅杞?/span>: http://www.luaplus.org/

涓嬭澆榪欎釜: All source code: http://luaplus.org/LuaPlus51_Build1100.zip (鎴戝綋鍓嶇殑鐗堟湰,褰撶劧瓚婃柊瓚婂ソ)

 

2.       鍓ョ

瑙e紑涓嬭澆鍖?/span>,鎵撳紑 \LuaPlus51_Build1100\Src\LuaPlus 閲岄潰鏄叏閮ㄦ簮鏂囦歡,src涓嬫槸lua鐨勬簮鏂囦歡.榪欓噷鏈変釜浠や漢鐤戞儜鐨勫湴鏂?/span>,婧愭枃浠朵腑甯︿簡涓浜涗笉闇瑕佺殑鏂囦歡,瑕佸墧闄ゅ幓,鍩烘湰涓婇渶瑕佷互涓嬭繖浜涙枃浠?/span>:

1)      Lua搴撴枃浠?/span>:

lapi.c

lapi.h

lauxlib.c

lauxlib.h

lbaselib.c

lcode.c

lcode.h

ldblib.c

ldebug.c

ldebug.h

ldo.c

ldo.h

ldump.c

lfunc.c

lfunc.h

lgc.c

lgc.h

linit.c

liolib.c

llex.c

llex.h

llimits.h

lmathlib.c

lmem.c

lmem.h

loadlib.c

lobject.c

lobject.h

lopcodes.c

lopcodes.h

loslib.c

lparser.c

lparser.h

lstate.c

lstate.h

lstring.c

lstring.h

lstrlib.c

ltable.c

ltable.h

ltablib.c

ltm.c

ltm.h

lua.h

luaconf.h

lualib.h

lundump.c

lundump.h

lvm.c

lvm.h

lzio.c

lzio.h

print.c

 

2)      LuaPlus澶存枃浠?/span>:

auxiliar.h

LuaAutoBlock.h

LuaCall.h

LuaFunction.h

LuaHelper.h

LuaHelper_Object.h

LuaHelper_StackObject.h

LuaLink.h

LuaObject.h

LuaObject.inl

LuaPlus.h

LuaPlusCD.h

LuaPlusFunctions.h

LuaPlusInternal.h

LuaStackObject.h

LuaStackObject.inl

LuaStackTableIterator.h

LuaState.h

LuaState.inl

LuaStateOutFile.h

LuaTableIterator.h

luathread.h

pt.h

srm.h

 

3)      LuaPlus婧愭枃浠?/span>

LuaCall.cpp

LuaObject.cpp

LuaPlus.cpp

LuaPlusAddons.c

LuaPlusFunctions.cpp

LuaPlus_Libs.cpp

LuaStackObject.cpp

LuaStackTableIterator.cpp

LuaState.cpp

LuaStateOutFile.cpp

LuaState_DumpObject.cpp

LuaTableIterator.cpp

lwstrlib.c

 

 

3.       寤虹珛欏圭洰

鐒跺悗浣犲氨鍙互鍦?/span>VS涓緩绔嬩竴涓柊欏圭洰,闈欐侀摼鎺ュ簱鐨?/span>:

鍒嗗埆鎶婇渶瑕佺殑鏂囦歡鍔犺繘鍘?/span>,涔嬪悗緙栬瘧,搴旇鑳介氳繃浜?/span>.

 

濡備綍浣跨敤

鎺ョ潃璁茶濡備綍鍦ㄤ綘鐨勫叾浠栭」鐩腑浣跨敤LuaPlus.

1.蹇呰鐨勯厤緗?/span>

浣犵殑欏圭洰鍙兘鏄繖鏍風(fēng)殑:

璁劇疆GameClient鐨勪緷璧栭」鏄?/span>LuaPlusLib

#include "LuaPlus.h"

using namespace LuaPlus;

璁板緱騫茶繖浜?/span>…

 

2.鍒涘緩涓涓姸鎬?/span>

LuaStateOwner state;

浠婂悗鐨勬搷浣滈兘鍥寸粫榪欎釜state

 

3.鎵ц鑴氭湰

int iret = state->DoFile("test.lua");

榪斿洖鍊間負(fù)0琛ㄧず鎴愬姛,鍚﹀垯涓嶆垚鍔?/span>.

 

4.C++涓幏鍙?/span>Lua鑴氭湰鐨勫彉閲?/span>

鍋囪浣犵殑test.lua涓湁:

health = 200;

閫氳繃涓嬪垪鏂規(guī)硶灝卞彲浠ュ湪C++涓緱鍒拌繖涓暟鍊?/span>

int mytest = state->GetGlobal("health").GetInteger();

 

5.C++涓皟鐢?/span>Lua鑴氭湰閲岀殑鍑芥暟

鍋囪浣犵殑test.lua涓湁:

function Add(x, y)

       return x+y;

end

鍦?/span>C++涓渶瑕佸厛澹版槑榪欎釜鍑芥暟:

LuaFunction<float> Add =  state->GetGlobal("Add");

榪欐牱浣犲氨鏈変簡Add()榪欎釜鍑芥暟,鐒跺悗灝卞彲浠ュ儚騫沖父涓鏍蜂嬌鐢ㄥ畠浜?/span>:

float myret = Add(3.14f,5.25f);

 

6.Lua鑴氭湰涓皟鐢?/span>C++鍑芥暟

鍦ㄨ鍙?/span>test.lua涔嬪墠瑕佸厛鎶?/span>C++鍑芥暟娉ㄥ唽鍒?/span>Lua鐨勮繍琛屾椂鏍堥噷,榪欐牱鍦ㄦ墽琛?/span>lua鑴氭湰鐨勬椂鍊?/span>,鎵嶇煡閬撴墽琛屽摢涓涓嚱鏁?/span>:

棣栧厛鏈夊嚱鏁?/span>:

int LS_PrintNumber(LuaState* state)

{

LuaStack args(state);

 

       if (args[1].IsNumber()) {

              printf("%f\n", args[1].GetNumber());

       }

       return 0;

}

鐒跺悗娉ㄥ唽榪欎釜鍑芥暟鍒?/span>Lua:

state->GetGlobals().Register("PrintNumber", LS_PrintNumber);

榪欐牱灝辨妸LS_PrintNumber鏄犲皠涓?/span>Lua涓彲浠ヤ嬌鐢ㄧ殑鍑芥暟PrintNumber.

Test.lua鑴氭湰涓坊鍔犺皟鐢ㄨ鍙?/span>:

PrintNumber(30);

褰?/span>state->DoFile("test.lua");鎵ц鐨勬椂鍊?/span>,灝辨墽琛屼簡C++涓殑榪欎釜鍑芥暟.

 

鎬葷粨

鏈枃浠嬬粛浜?/span>LuaPlus鐨勫熀鏈厤緗柟娉曞拰浣跨敤,甯屾湜瀵逛綘鏈夊府鍔?/span>.涓嬩竴綃囧皢浠嬬粛涓浜涢珮綰х壒鎬?/span>,濡傛庢牱鍦?/span>VS涓皟璇?/span>LuaPlus鐨勮剼鏈?/span>,浠ュ強(qiáng)瀵圭被鐨勬搷浣滅瓑.

濡傛灉榪樻湁浠諱綍鐤戦棶鍙互鐪嬬湅涓嬮潰榪欎釜綆鍗曠殑渚嬪瓙:
 /Files/singohgod/LuaPlus_Test.rar



]]>
luaplus瀛︿範(fàn)(浜? 杞?/title><link>http://m.shnenglu.com/wc250en007/archive/2011/07/18/151283.html</link><dc:creator>Let me see see</dc:creator><author>Let me see see</author><pubDate>Mon, 18 Jul 2011 02:08:00 GMT</pubDate><guid>http://m.shnenglu.com/wc250en007/archive/2011/07/18/151283.html</guid><wfw:comment>http://m.shnenglu.com/wc250en007/comments/151283.html</wfw:comment><comments>http://m.shnenglu.com/wc250en007/archive/2011/07/18/151283.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.shnenglu.com/wc250en007/comments/commentRss/151283.html</wfw:commentRss><trackback:ping>http://m.shnenglu.com/wc250en007/services/trackbacks/151283.html</trackback:ping><description><![CDATA[<span id="hvzpftn" class="Apple-style-span" style="word-spacing: 0px; font: 14px/26px Arial; text-transform: none; color: rgb(51,51,51); text-indent: 0px; white-space: normal; letter-spacing: normal; background-color: rgb(255,255,255); text-align: left; orphans: 2; widows: 2; webkit-text-decorations-in-effect: none; webkit-text-size-adjust: auto; webkit-text-stroke-width: 0px"> <h1 style="padding-right: 0px; padding-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px">鐢╨ua鍋氶厤緗枃浠?/h1>    鍙互鐢╨ua鍋氱▼搴忕殑閰嶇疆鏂囦歡銆?br />    LuaPlus鎻愪緵浜嗚鍐檒ua鑴氭湰鏂囦歡鐨勫姛鑳斤紝鎴戜滑鍙互灝嗛厤緗俊鎭互Table鐨勫艦寮忓瓨鍌ㄥ湪lua鑴氭湰涓紝鐒跺悗鍒╃敤LuaPlus榪涜璇誨彇鍜屾洿鏀廣?br /> <h2 style="padding-right: 0px; padding-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px">    涓銆佸垱寤洪厤緗枃浠?/h2>    閰嶇疆鏂囦歡鍙互鐢ㄦ枃瀛楃紪杈戝櫒鍒涘緩錛屼篃鍙互鍦–++浠g爜涓垱寤恒傛垜浠厛鍦–++涓垱寤恒傚埄鐢–reateTable鍒涘緩涓涓悕涓?Window"鐨勮〃鏍鹼紝鍒╃敤LuaObject鐨凷et*鍑芥暟璁劇疆琛ㄦ牸鍐呭錛屾渶鍚庣敤DumpObject鍑芥暟淇濆瓨鍒版枃浠躲備唬鐮佸涓嬶細(xì)<br /> <div style="border-right: windowtext 0.5pt solid; padding-right: 5.4pt; background-position: 0% 50%; border-top: windowtext 0.5pt solid; padding-left: 5.4pt; background-attachment: scroll;background-image: none; padding-bottom: 4px; border-left: windowtext 0.5pt solid; width: 659px; padding-top: 4px; border-bottom: windowtext 0.5pt solid; background-color: rgb(230,230,230); background-origin: initial; background-clip: initial"> <div><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" align="top" /><span style="color: rgb(0,0,255)">void</span><span style="color: rgb(0,0,0)"> SaveTable()<br /><img id="_17_431_Open_Image" style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" onclick="this.style.display='none'; document.getElementById('_17_431_Open_Text').style.display='none'; document.getElementById('_17_431_Closed_Image').style.display='inline'; document.getElementById('_17_431_Closed_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockStart.gif" align="top"></span><span id="_17_431_Open_Text"><span style="color: rgb(0,0,0)">{<br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />    LuaStateOwner state;<br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />    LuaObject myTable </span><span style="color: rgb(0,0,0)">=</span><span style="color: rgb(0,0,0)">  state</span><span style="color: rgb(0,0,0)">-></span><span style="color: rgb(0,0,0)">GetGlobals().CreateTable(</span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">Window</span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">);<br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />    myTable.SetInteger(</span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">width</span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">, </span><span style="color: rgb(0,0,0)">640</span><span style="color: rgb(0,0,0)">);<br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />    myTable.SetInteger(</span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">height</span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">, </span><span style="color: rgb(0,0,0)">480</span><span style="color: rgb(0,0,0)">);<br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />    myTable.SetString(</span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">title</span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">, </span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">My First Window</span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">);<br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />    myTable.SetBoolean(</span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">enabled</span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">, </span><span style="color: rgb(0,0,255)">true</span><span style="color: rgb(0,0,0)">);<br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />    myTable.SetInteger(</span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">alpha</span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">, </span><span style="color: rgb(0,0,0)">128</span><span style="color: rgb(0,0,0)">);<br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />    myTable.SetString(</span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">backgroundimage</span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">, </span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">bg.jpg</span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">);<br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" /><br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />    state</span><span style="color: rgb(0,0,0)">-></span><span style="color: rgb(0,0,0)">DumpObject(</span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">FirstWindow.lua</span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">, </span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">Window</span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">, state</span><span style="color: rgb(0,0,0)">-></span><span style="color: rgb(0,0,0)">GetGlobals()[</span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">Window</span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">], </span><span style="color: rgb(0,0,0)">0</span><span style="color: rgb(0,0,0)">);<br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockEnd.gif" align="top" />}</span></span></div></div>    鐩稿叧鍑芥暟鐨勮鏄庡弬瑙佹枃妗c?br /> <h2 style="padding-right: 0px; padding-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px">    浜屻佽鍙栭厤緗枃浠?/h2>    Lua閰嶇疆鏂囦歡鐨勫姞杞藉拰鍏跺畠鑴氭湰鏂囦歡涓鏍鳳紝鍙互鐢―oFile鍑芥暟錛岀劧鍚庡彲浠ョ敤GetGlobals鍔犵儲寮曠殑褰㈠紡鑾峰彇琛ㄦ牸LuaObject瀵硅薄錛屾渶鍚庣敤[ ]璁塊棶琛ㄦ牸鐨勫厓绱犮備唬鐮佸涓嬶細(xì)<br /> <div style="border-right: windowtext 0.5pt solid; padding-right: 5.4pt; background-position: 0% 50%; border-top: windowtext 0.5pt solid; padding-left: 5.4pt; background-attachment: scroll;background-image: none; padding-bottom: 4px; border-left: windowtext 0.5pt solid; width: 659px; padding-top: 4px; border-bottom: windowtext 0.5pt solid; background-color: rgb(230,230,230); background-origin: initial; background-clip: initial"> <div><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" align="top" /><span style="color: rgb(0,0,255)">void</span><span style="color: rgb(0,0,0)"> ReadShowTable()<br /><img id="_21_603_Open_Image" style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" onclick="this.style.display='none'; document.getElementById('_21_603_Open_Text').style.display='none'; document.getElementById('_21_603_Closed_Image').style.display='inline'; document.getElementById('_21_603_Closed_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockStart.gif" align="top"></span><span id="_21_603_Open_Text"><span style="color: rgb(0,0,0)">{<br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />    LuaStateOwner state;<br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />    state</span><span style="color: rgb(0,0,0)">-></span><span style="color: rgb(0,0,0)">DoFile(</span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">FirstWindow.lua</span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">);<br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />    LuaObject myTable </span><span style="color: rgb(0,0,0)">=</span><span style="color: rgb(0,0,0)"> state</span><span style="color: rgb(0,0,0)">-></span><span style="color: rgb(0,0,0)">GetGlobals()[</span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">Window</span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">];<br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" /><br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />    </span><span style="color: rgb(0,128,0)">//</span><span style="color: rgb(0,128,0)">get Window Table's item</span><span style="color: rgb(0,128,0)"><br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" /></span><span style="color: rgb(0,0,0)">    printf(</span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">Window Table in FirstWindow.lua:<span id="hvzpftn" class="Apple-converted-space"> </span></span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">);<br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />    printf(</span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)"> width = %d<span id="hvzpftn" class="Apple-converted-space"> </span></span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">, myTable[</span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">width</span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">].GetInteger() );<br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />    printf(</span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)"> height = %d<span id="hvzpftn" class="Apple-converted-space"> </span></span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">, myTable[</span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">height</span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">].GetInteger() );<br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />    printf(</span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)"> title = %s<span id="hvzpftn" class="Apple-converted-space"> </span></span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">, myTable[</span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">title</span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">].GetString() );<br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />    printf(</span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)"> enabled = %s<span id="hvzpftn" class="Apple-converted-space"> </span></span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">, myTable[</span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">enabled</span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">].GetBoolean() </span><span style="color: rgb(0,0,0)">?</span><span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">true</span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)"> : </span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">false</span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)"> );<br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />    printf(</span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)"> alpha = %d<span id="hvzpftn" class="Apple-converted-space"> </span></span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">, myTable[</span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">alpha</span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">].GetInteger());<br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />    printf(</span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)"> backgroundimage = %s<span id="hvzpftn" class="Apple-converted-space"> </span></span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">, myTable[</span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">backgroundimage</span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">].GetString() );<br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockEnd.gif" align="top" />}</span></span></div></div><br /> <h2 style="padding-right: 0px; padding-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px">    涓夈佹洿鏀歸厤緗枃浠?/h2>    璇誨彇閰嶇疆鏂囦歡鐨勮繃紼嬪拰涓婁竴鑺傜被浼鹼紝鏇存敼涓庝繚瀛樺拰絎竴鑺傜被浼箋備唬鐮佸涓嬶細(xì)<br /> <div style="border-right: windowtext 0.5pt solid; padding-right: 5.4pt; background-position: 0% 50%; border-top: windowtext 0.5pt solid; padding-left: 5.4pt; background-attachment: scroll;background-image: none; padding-bottom: 4px; border-left: windowtext 0.5pt solid; width: 659px; padding-top: 4px; border-bottom: windowtext 0.5pt solid; background-color: rgb(230,230,230); background-origin: initial; background-clip: initial"> <div><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" align="top" /><span style="color: rgb(0,0,255)">void</span><span style="color: rgb(0,0,0)"> RewriteTableContents()<br /><img id="_28_392_Open_Image" style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" onclick="this.style.display='none'; document.getElementById('_28_392_Open_Text').style.display='none'; document.getElementById('_28_392_Closed_Image').style.display='inline'; document.getElementById('_28_392_Closed_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockStart.gif" align="top"></span><span id="_28_392_Open_Text"><span style="color: rgb(0,0,0)">{<br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" /><br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />    LuaStateOwner state;<br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />    state</span><span style="color: rgb(0,0,0)">-></span><span style="color: rgb(0,0,0)">DoFile(</span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">FirstWindow.lua</span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">);<br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />    LuaObject myTable </span><span style="color: rgb(0,0,0)">=</span><span style="color: rgb(0,0,0)"> state</span><span style="color: rgb(0,0,0)">-></span><span style="color: rgb(0,0,0)">GetGlobals()[</span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">Window</span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">];<br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />    myTable.SetInteger(</span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">width</span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">, </span><span style="color: rgb(0,0,0)">800</span><span style="color: rgb(0,0,0)">);<br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />    myTable.SetInteger(</span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">height</span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">, </span><span style="color: rgb(0,0,0)">600</span><span style="color: rgb(0,0,0)">);<br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />    printf(</span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">new width=%d, height=%d<span id="hvzpftn" class="Apple-converted-space"> </span></span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">,myTable[</span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">width</span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">].GetInteger(), myTable[</span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">height</span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">].GetInteger());<br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />    state</span><span style="color: rgb(0,0,0)">-></span><span style="color: rgb(0,0,0)">DumpObject(</span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">FirstWindow.lua</span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">, </span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">Window</span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">, state</span><span style="color: rgb(0,0,0)">-></span><span style="color: rgb(0,0,0)">GetGlobals()[</span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">Window</span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">]);<br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" /><br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockEnd.gif" align="top" />}</span></span></div></div>    鍊煎緱娉ㄦ剰鐨勬槸錛屾洿鏂伴厤緗枃浠舵椂錛屼笉鑳藉崟鐙洿鏂拌〃鏍肩殑鏌愪竴涓厓绱犮傛垜璇曢獙浜嗕笅錛屽嚭閿欍備篃璁告槸鎴戠殑鏂規(guī)硶涓嶅銆傛墍浠ユ垜鐜板湪涓嬈℃洿鏂版暣涓〃鏍箋?br /><br />    涓嬮潰鏄痬ain鍑芥暟錛?br />    <div style="border-right: windowtext 0.5pt solid; padding-right: 5.4pt; background-position: 0% 50%; border-top: windowtext 0.5pt solid; padding-left: 5.4pt; background-attachment: scroll;background-image: none; padding-bottom: 4px; border-left: windowtext 0.5pt solid; width: 659px; padding-top: 4px; border-bottom: windowtext 0.5pt solid; background-color: rgb(230,230,230); background-origin: initial; background-clip: initial"> <div><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" align="top" /><span style="color: rgb(0,0,255)">int</span><span style="color: rgb(0,0,0)"> _tmain(</span><span style="color: rgb(0,0,255)">int</span><span style="color: rgb(0,0,0)"> argc, _TCHAR</span><span style="color: rgb(0,0,0)">*</span><span style="color: rgb(0,0,0)"> argv[])<br /><img id="_37_381_Open_Image" style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" onclick="this.style.display='none'; document.getElementById('_37_381_Open_Text').style.display='none'; document.getElementById('_37_381_Closed_Image').style.display='inline'; document.getElementById('_37_381_Closed_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockStart.gif" align="top"></span><span id="_37_381_Open_Text"><span style="color: rgb(0,0,0)">{<br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />    printf(</span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">now create table and save in FirstWindow.lua:<span id="hvzpftn" class="Apple-converted-space"> </span></span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">);<br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />    SaveTable();<br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" /><br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />    printf(</span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">now read table from FirstWindow.lua:<span id="hvzpftn" class="Apple-converted-space"> </span></span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">);<br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />    ReadShowTable();<br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" /><br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />    printf(</span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">now retrieve the table, change the "width" and "height" value, then save:<span id="hvzpftn" class="Apple-converted-space"> </span></span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">);<br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />    RewriteTableContents();<br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" /><br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />    printf(</span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">now, re-read from FirstWindow.lua:<span id="hvzpftn" class="Apple-converted-space"> </span></span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">);<br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />    ReadShowTable();<br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" /><br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />    </span><span style="color: rgb(0,0,255)">return</span><span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,0)">0</span><span style="color: rgb(0,0,0)">;<br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockEnd.gif" align="top" />}</span></span></div></div><br />    宸ョ▼鐨勮緗拰涓婁竴綃囨枃绔犱竴鏍楓?br />    F7緙栬瘧鍚嶤TRL+F5鍗沖彲鐪嬪埌榪愯緇撴灉銆?br /><br />    鍊煎緱娉ㄦ剰鐨勬槸錛宼able鍙互宓屽table銆傝繖鏍鋒垜浠究鍙互瀹炵幇澶嶆潅鐨勯厤緗枃浠躲?/span><img src ="http://m.shnenglu.com/wc250en007/aggbug/151283.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.shnenglu.com/wc250en007/" target="_blank">Let me see see</a> 2011-07-18 10:08 <a href="http://m.shnenglu.com/wc250en007/archive/2011/07/18/151283.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>luaplus瀛︿範(fàn)錛堜竴錛?杞?/title><link>http://m.shnenglu.com/wc250en007/archive/2011/07/18/151282.html</link><dc:creator>Let me see see</dc:creator><author>Let me see see</author><pubDate>Mon, 18 Jul 2011 02:07:00 GMT</pubDate><guid>http://m.shnenglu.com/wc250en007/archive/2011/07/18/151282.html</guid><wfw:comment>http://m.shnenglu.com/wc250en007/comments/151282.html</wfw:comment><comments>http://m.shnenglu.com/wc250en007/archive/2011/07/18/151282.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.shnenglu.com/wc250en007/comments/commentRss/151282.html</wfw:commentRss><trackback:ping>http://m.shnenglu.com/wc250en007/services/trackbacks/151282.html</trackback:ping><description><![CDATA[<span id="hvzpftn" class="Apple-style-span" style="word-spacing: 0px; font: 14px/26px Arial; text-transform: none; color: rgb(51,51,51); text-indent: 0px; white-space: normal; letter-spacing: normal; background-color: rgb(255,255,255); text-align: left; orphans: 2; widows: 2; webkit-text-decorations-in-effect: none; webkit-text-size-adjust: auto; webkit-text-stroke-width: 0px">    鎯沖湪鎴戠殑欏圭洰涓嬌鐢↙ua鑴氭湰璇█銆傛渶鍒濈煡閬揕ua鏄氳繃CEGUI錛屽悗鏉ュ洜涓轟竴浜涘師鍥犱笉鎵撶畻浣跨敤CEGUI浜嗭紝鍙ソ鍗曠嫭浣跨敤Lua銆傚湪緗戜笂鐪嬪埌LuaPlus錛岃矊浼兼瘮杈冪畝鍗曘傚湪姝よ褰曞涔?fàn)杩嚱E嬨?br />    鍙互鍒拌繖閲宧ttp://luaplus.org/tiki-index.php?page=LuaPlus+Home+Page涓嬭澆LuaPlus鐨剋in32浜岃繘鍒舵枃浠跺拰婧愮爜鍖呫備粠婧愮爜鍖呮彁鍙栧ご鏂囦歡錛屼粠浜岃繘鍒跺寘鎻愬彇DLL鏂囦歡銆?br />    LuaPlus瀵筁ua鍋氫簡淇敼鍜屽皝瑁咃紝浣垮緱Lua鍜孋++鐨勪氦浜掓洿涓虹畝鍗曘傚彲浠ヤ粠涓婇潰鐨勯摼鎺ユ壘鍒板畠鐨勪粙緇嶃?br /><br />    鍏堢畝鍗曠殑鍋氫袱涓祴璇曪細(xì)錛?錛変粠C++涓皟鐢↙ua鑴氭湰涓殑鍑芥暟錛涳紙2錛変粠Lua鑴氭湰涓皟鐢–++閲岀殑鍑芥暟銆?br /><br /> <h2 style="padding-right: 0px; padding-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px">    涓銆佸伐紼嬮厤緗?/h2>    VC7.1涓柊寤簑in32鎺у埗鍙板伐紼婽estLuaPlusLib銆?br /><br />    瑙e喅鏂規(guī)瑙嗗浘涓彸閿偣鍑籘estLuaPlusLib錛岄夊睘鎬э紱閰嶇疆緇勫悎妗嗛?#8220;鎵鏈夐厤緗?#8221;錛涗緷嬈$偣鍑?#8220;閰嶇疆灞炴?#8221;銆?#8220;C/C++”銆?#8220;甯歌”錛屽湪闄勫姞鍖呭惈鐩綍閲屾坊鍔犳簮鐮佽В鍘嬪悗鎵鍦ㄧ殑璺緞錛堟垜鐨勶細(xì)E:/sources/LuaPlus/LuaPlus51_Build1100/Src/LuaPlus錛夛紱渚濇鐐瑰嚮“榪炴帴鍣?#8221;銆?#8220;甯歌”錛屽湪闄勫姞搴撶洰褰曚腑娣誨姞浜岃繘鍒跺寘瑙e帇鍚庢墍鍦ㄧ殑璺緞錛堟垜鐨勶細(xì)E:/sources/LuaPlus/LuaPlus51_Build1100_Win32/Lib/win32錛夈?br /><br />    鍦═estLuaPlusLib.cpp涓姞鍏ュ涓嬪嚑琛屼唬鐮侊紝灝嗗ご鏂囦歡鍜屽簱鏂囦歡鍔犲叆榪涙潵銆?br /><br /> <div> <div style="border-right: windowtext 0.5pt solid; padding-right: 5.4pt; background-position: 0% 50%; border-top: windowtext 0.5pt solid; padding-left: 5.4pt; background-attachment: scroll;background-image: none; padding-bottom: 4px; border-left: windowtext 0.5pt solid; width: 659px; padding-top: 4px; border-bottom: windowtext 0.5pt solid; background-color: rgb(230,230,230); background-origin: initial; background-clip: initial"> <div><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" align="top" /><span style="color: rgb(0,0,0)">    #include </span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">luaplus.h</span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)"><br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" align="top" />    </span><span style="color: rgb(0,0,255)">#if</span><span style="color: rgb(0,0,0)"> defined(DEBUG) || defined(_DEBUG)</span><span style="color: rgb(0,0,0)"><br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" align="top" />    </span><span style="color: rgb(0,0,255)">#pragma</span><span style="color: rgb(0,0,0)"> comment(lib, "LuaPlusD_1100.lib")</span><span style="color: rgb(0,0,0)"><br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" align="top" />    </span><span style="color: rgb(0,0,255)">#else</span><span style="color: rgb(0,0,0)"><br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" align="top" />    </span><span style="color: rgb(0,0,255)">#pragma</span><span style="color: rgb(0,0,0)"> comment(lib, "LuaPlus_1100.lib")</span><span style="color: rgb(0,0,0)"><br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" align="top" />    </span><span style="color: rgb(0,0,255)">#endif</span><span style="color: rgb(0,0,0)"><br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" align="top" />    </span><span style="color: rgb(0,0,255)">using</span><span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,255)">namespace</span><span style="color: rgb(0,0,0)"> LuaPlus;<br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" align="top" /></span></div></div><br />    宸ョ▼閰嶇疆鍩烘湰涓婂畬鎴愪簡銆?/div>   <span id="hvzpftn" class="Apple-converted-space"> </span><br /> <h2 style="padding-right: 0px; padding-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px">   浜屻佹祴璇曠敤Lua鑴氭湰</h2>    濡備笅寤虹珛嫻嬭瘯鐢ㄧ殑Lua鑴氭湰騫朵繚瀛樺湪浣犲嵆灝嗙敓鎴愮殑鍙墽琛屾枃浠舵墍鍦ㄧ殑鐩綍涓嬨傚悓鏃墮渶瑕佹妸浜岃繘鍒跺寘涓殑LuaPlusD_1100.dll鍜孡uaPlus_1100.dll鎷瘋礉鍒拌鐩綍涓嬨?br /> <div style="border-right: windowtext 0.5pt solid; padding-right: 5.4pt; background-position: 0% 50%; border-top: windowtext 0.5pt solid; padding-left: 5.4pt; background-attachment: scroll;background-image: none; padding-bottom: 4px; border-left: windowtext 0.5pt solid; width: 659px; padding-top: 4px; border-bottom: windowtext 0.5pt solid; background-color: rgb(230,230,230); background-origin: initial; background-clip: initial"> <div><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" align="top" /><span style="color: rgb(0,0,0)">    health </span><span style="color: rgb(0,0,0)">=</span><span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,0)">100</span><span style="color: rgb(0,0,0)">;<br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" align="top" /><br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" align="top" />    PrintNumber(</span><span style="color: rgb(0,0,0)">30</span><span style="color: rgb(0,0,0)">);<br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" align="top" /> <br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" align="top" />    function Add(x, y)<br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" align="top" />        </span><span style="color: rgb(0,0,255)">return</span><span style="color: rgb(0,0,0)"> x </span><span style="color: rgb(0,0,0)">+</span><span style="color: rgb(0,0,0)"> y;<br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" align="top" />    end<br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" align="top" /></span></div></div><br /> <div>    health = 100;Lua鑴氭湰涓殑鍏ㄥ眬鍙橀噺錛屽彲浠ヨC++鏂囦歡璁塊棶銆?br />    PrintNumber(30);璇ヨ鍙ヨ皟鐢–++鏂囦歡涓殑鍑芥暟錛屾墦鍗版暟瀛楀埌鎺у埗鍙扮獥鍙c?br />    function Add(x,y)澹版槑涓涓嚱鏁幫紝C++鏂囦歡浼?xì)鎵惧埌迤堣皟鐢ㄦ鍑芥暟銆?br /><br /> <h2 style="padding-right: 0px; padding-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px">    涓夈丆++瀹炵幇</h2>    鍦═estLuaPlusLib.cpp涓姞鍏ヤ笅闈袱涓嚱鏁般?br /> <div style="border-right: windowtext 0.5pt solid; padding-right: 5.4pt; background-position: 0% 50%; border-top: windowtext 0.5pt solid; padding-left: 5.4pt; background-attachment: scroll;background-image: none; padding-bottom: 4px; border-left: windowtext 0.5pt solid; width: 659px; padding-top: 4px; border-bottom: windowtext 0.5pt solid; background-color: rgb(230,230,230); background-origin: initial; background-clip: initial"> <div><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" align="top" /><span style="color: rgb(0,0,255)">static</span><span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,255)">int</span><span style="color: rgb(0,0,0)"> PrintLSNumber(LuaState</span><span style="color: rgb(0,0,0)">*</span><span style="color: rgb(0,0,0)"> state)<br /><img id="_42_210_Open_Image" style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" onclick="this.style.display='none'; document.getElementById('_42_210_Open_Text').style.display='none'; document.getElementById('_42_210_Closed_Image').style.display='inline'; document.getElementById('_42_210_Closed_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockStart.gif" align="top"></span><span id="_42_210_Open_Text"><span style="color: rgb(0,0,0)">{<br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />    LuaStack args(state);<br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" /><br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />    </span><span style="color: rgb(0,128,0)">//</span><span style="color: rgb(0,128,0)"> Verify it is a number and print it.</span><span style="color: rgb(0,128,0)"><br /><img id="_133_175_Open_Image" style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" onclick="this.style.display='none'; document.getElementById('_133_175_Open_Text').style.display='none'; document.getElementById('_133_175_Closed_Image').style.display='inline'; document.getElementById('_133_175_Closed_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif" align="top"></span><span style="color: rgb(0,0,0)">    </span><span style="color: rgb(0,0,255)">if</span><span style="color: rgb(0,0,0)"> (args[</span><span style="color: rgb(0,0,0)">1</span><span style="color: rgb(0,0,0)">].IsNumber()) </span><span id="_133_175_Open_Text"><span style="color: rgb(0,0,0)">{<br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />        printf(</span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">%f<span id="hvzpftn" class="Apple-converted-space"> </span></span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">, args[</span><span style="color: rgb(0,0,0)">1</span><span style="color: rgb(0,0,0)">].GetNumber());<br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />    }</span></span><span style="color: rgb(0,0,0)"><br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />    </span><span style="color: rgb(0,128,0)">//</span><span style="color: rgb(0,128,0)"> No return values.</span><span style="color: rgb(0,128,0)"><br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" /></span><span style="color: rgb(0,0,0)">    </span><span style="color: rgb(0,0,255)">return</span><span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,0)">0</span><span style="color: rgb(0,0,0)">;<br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockEnd.gif" align="top" />}</span></span><span style="color: rgb(0,0,0)"><br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" align="top" /><br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" align="top" /><br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" align="top" /></span><span style="color: rgb(0,0,255)">void</span><span style="color: rgb(0,0,0)"> test() <br /><img id="_227_906_Open_Image" style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" onclick="this.style.display='none'; document.getElementById('_227_906_Open_Text').style.display='none'; document.getElementById('_227_906_Closed_Image').style.display='inline'; document.getElementById('_227_906_Closed_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockStart.gif" align="top"></span><span id="_227_906_Open_Text"><span style="color: rgb(0,0,0)">{<br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />    </span><span style="color: rgb(0,128,0)">//</span><span style="color: rgb(0,128,0)">Create state</span><span style="color: rgb(0,128,0)"><br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" /></span><span style="color: rgb(0,0,0)">    LuaStateOwner state;<br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" /><br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />    </span><span style="color: rgb(0,128,0)">//</span><span style="color: rgb(0,128,0)">With this the script can access our own C++ functions:</span><span style="color: rgb(0,128,0)"><br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" /></span><span style="color: rgb(0,0,0)">    state</span><span style="color: rgb(0,0,0)">-></span><span style="color: rgb(0,0,0)">GetGlobals().Register(</span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">PrintNumber</span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">, PrintLSNumber);<br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" /><br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />    </span><span style="color: rgb(0,128,0)">//</span><span style="color: rgb(0,128,0)">Open test file:</span><span style="color: rgb(0,128,0)"><br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" /></span><span style="color: rgb(0,0,0)">    </span><span style="color: rgb(0,0,255)">int</span><span style="color: rgb(0,0,0)"> iret </span><span style="color: rgb(0,0,0)">=</span><span style="color: rgb(0,0,0)"> state</span><span style="color: rgb(0,0,0)">-></span><span style="color: rgb(0,0,0)">DoFile(</span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">test.lua</span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">);<br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" /><br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />     </span><span style="color: rgb(0,128,0)">//</span><span style="color: rgb(0,128,0)">Get a global variable:</span><span style="color: rgb(0,128,0)"><br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" /></span><span style="color: rgb(0,0,0)">    LuaObject sObj </span><span style="color: rgb(0,0,0)">=</span><span style="color: rgb(0,0,0)"> state</span><span style="color: rgb(0,0,0)">-></span><span style="color: rgb(0,0,0)">GetGlobal(</span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">health</span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">);<br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />    </span><span style="color: rgb(0,0,255)">int</span><span style="color: rgb(0,0,0)"> mytest </span><span style="color: rgb(0,0,0)">=</span><span style="color: rgb(0,0,0)"> sObj.GetInteger();<br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />    printf(</span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">init value in luascript:%d<span id="hvzpftn" class="Apple-converted-space"> </span></span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">, mytest);<br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" /><br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />    </span><span style="color: rgb(0,128,0)">//</span><span style="color: rgb(0,128,0)">Update the value:</span><span style="color: rgb(0,128,0)"><br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" /></span><span style="color: rgb(0,0,0)">    sObj.AssignInteger(state, </span><span style="color: rgb(0,0,0)">50</span><span style="color: rgb(0,0,0)">);<br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />    </span><span style="color: rgb(0,128,0)">//</span><span style="color: rgb(0,128,0)">Get value again:</span><span style="color: rgb(0,128,0)"><br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" /></span><span style="color: rgb(0,0,0)">    mytest </span><span style="color: rgb(0,0,0)">=</span><span style="color: rgb(0,0,0)"> sObj.GetInteger();<br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />    printf(</span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">after changed by c++:%d<span id="hvzpftn" class="Apple-converted-space"> </span></span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">, mytest);<br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" /><br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />    </span><span style="color: rgb(0,128,0)">//</span><span style="color: rgb(0,128,0)">Call a function in lua:</span><span style="color: rgb(0,128,0)"><br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" /></span><span style="color: rgb(0,0,0)">    LuaFunction</span><span style="color: rgb(0,0,0)"><</span><span style="color: rgb(0,0,255)">int</span><span style="color: rgb(0,0,0)">></span><span style="color: rgb(0,0,0)"> Add </span><span style="color: rgb(0,0,0)">=</span><span style="color: rgb(0,0,0)">  state</span><span style="color: rgb(0,0,0)">-></span><span style="color: rgb(0,0,0)">GetGlobal(</span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">Add</span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">);<br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />    </span><span style="color: rgb(0,0,255)">int</span><span style="color: rgb(0,0,0)"> myret </span><span style="color: rgb(0,0,0)">=</span><span style="color: rgb(0,0,0)"> Add(</span><span style="color: rgb(0,0,0)">3</span><span style="color: rgb(0,0,0)">, </span><span style="color: rgb(0,0,0)">4</span><span style="color: rgb(0,0,0)">);<br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />    printf(</span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">Call add() in luascript,ret=%d<span id="hvzpftn" class="Apple-converted-space"> </span></span><span style="color: rgb(0,0,0)">"</span><span style="color: rgb(0,0,0)">, myret);<br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" /><br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockEnd.gif" align="top" />}</span></span><span style="color: rgb(0,0,0)"><br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" align="top" /></span></div></div><br />    main鍑芥暟錛?br /> <div style="border-right: windowtext 0.5pt solid; padding-right: 5.4pt; background-position: 0% 50%; border-top: windowtext 0.5pt solid; padding-left: 5.4pt; background-attachment: scroll;background-image: none; padding-bottom: 4px; border-left: windowtext 0.5pt solid; width: 659px; padding-top: 4px; border-bottom: windowtext 0.5pt solid; background-color: rgb(230,230,230); background-origin: initial; background-clip: initial"> <div><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" align="top" /><span style="color: rgb(0,0,255)">int</span><span style="color: rgb(0,0,0)"> _tmain(</span><span style="color: rgb(0,0,255)">int</span><span style="color: rgb(0,0,0)"> argc, _TCHAR</span><span style="color: rgb(0,0,0)">*</span><span style="color: rgb(0,0,0)"> argv[])<br /><img id="_37_59_Open_Image" style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" onclick="this.style.display='none'; document.getElementById('_37_59_Open_Text').style.display='none'; document.getElementById('_37_59_Closed_Image').style.display='inline'; document.getElementById('_37_59_Closed_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockStart.gif" align="top"></span><span id="_37_59_Open_Text"><span style="color: rgb(0,0,0)">{<br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />    test();<br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />    </span><span style="color: rgb(0,0,255)">return</span><span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,0)">0</span><span style="color: rgb(0,0,0)">;<br /><img style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockEnd.gif" align="top" />}</span></span></div></div></div> <div> <br />    鐜板湪鍙互緙栬瘧浜嗭紝緙栬瘧瀹屾垚涔嬪悗榪愯錛屽彲浠ュ湪鎺у埗鍙扮獥鍙d腑鐪嬪埌緇撴灉銆?br />    闇瑕佹敞鎰忕殑鏄墽琛岃剼鏈鍦ㄦ敞鍐孋++鍑芥暟鍒癓ua妯″潡涔嬪悗榪涜銆?br />    鍩烘湰涓婃槸鎸夌収http://gpwiki.org/index.php/Scripting_with_LuaPlus_and_Cpp鏉ュ仛鐨勶紝鍔犲叆浜嗗伐紼嬭緗儴鍒嗐傝閾炬帴鐨勪唬鐮侊紙test鍑芥暟錛変細(xì)鎶ラ敊錛堣皟鐢ㄤ簡math搴撲腑鐨刢os鍑芥暟錛屼絾鏄病鏈夎皟鐢∣penLibs()鍑芥暟錛夛紝鎴戜慨鏀逛簡涓涓嬶紝鍘繪帀浜嗗math搴撶殑寮曠敤銆?br /><br /> <h3 style="padding-right: 0px; padding-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px">   鐩稿叧璧勬簮閾炬帴錛?/h3>    1>LuaPlus鐨勬枃妗o細(xì)http://www.gamedev.net/reference/programming/features/lua/<br />    2>LuaPlus鍒濈駭鏁欑▼錛歨ttp://wwhiz.com/LuaPlus/LuaPlus.html</div></span><img src ="http://m.shnenglu.com/wc250en007/aggbug/151282.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.shnenglu.com/wc250en007/" target="_blank">Let me see see</a> 2011-07-18 10:07 <a href="http://m.shnenglu.com/wc250en007/archive/2011/07/18/151282.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item></channel></rss> <a href="http://m.shnenglu.com/">青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品</a> <div style="position:fixed;left:-9000px;top:-9000px;"><font id="pjuwb"></font><button id="pjuwb"><pre id="pjuwb"></pre></button><sub id="pjuwb"></sub><tbody id="pjuwb"><var id="pjuwb"><address id="pjuwb"></address></var></tbody><listing id="pjuwb"><label id="pjuwb"><strong id="pjuwb"></strong></label></listing><wbr id="pjuwb"><small id="pjuwb"><tbody id="pjuwb"></tbody></small></wbr><ins id="pjuwb"><xmp id="pjuwb"></xmp></ins><style id="pjuwb"></style><label id="pjuwb"><em id="pjuwb"><li id="pjuwb"></li></em></label><samp id="pjuwb"></samp><menu id="pjuwb"><input id="pjuwb"></input></menu><pre id="pjuwb"><tbody id="pjuwb"><tfoot id="pjuwb"><button id="pjuwb"></button></tfoot></tbody></pre><form id="pjuwb"></form><i id="pjuwb"><style id="pjuwb"><label id="pjuwb"><sup id="pjuwb"></sup></label></style></i><li id="pjuwb"><table id="pjuwb"><abbr id="pjuwb"></abbr></table></li><video id="pjuwb"></video><dfn id="pjuwb"></dfn><progress id="pjuwb"></progress><strong id="pjuwb"></strong><mark id="pjuwb"></mark><em id="pjuwb"></em><tbody id="pjuwb"><p id="pjuwb"><strike id="pjuwb"><acronym id="pjuwb"></acronym></strike></p></tbody><option id="pjuwb"></option><strike id="pjuwb"></strike><u id="pjuwb"></u><td id="pjuwb"><center id="pjuwb"><tr id="pjuwb"></tr></center></td><em id="pjuwb"><mark id="pjuwb"><em id="pjuwb"><tt id="pjuwb"></tt></em></mark></em><strong id="pjuwb"></strong><wbr id="pjuwb"></wbr><s id="pjuwb"></s><strong id="pjuwb"></strong><legend id="pjuwb"></legend><nav id="pjuwb"></nav><dl id="pjuwb"><th id="pjuwb"><dl id="pjuwb"></dl></th></dl><noframes id="pjuwb"><ins id="pjuwb"></ins></noframes><font id="pjuwb"></font><strike id="pjuwb"><i id="pjuwb"><style id="pjuwb"><label id="pjuwb"></label></style></i></strike><output id="pjuwb"></output><thead id="pjuwb"><pre id="pjuwb"></pre></thead><source id="pjuwb"></source><menuitem id="pjuwb"><wbr id="pjuwb"></wbr></menuitem><pre id="pjuwb"><span id="pjuwb"><pre id="pjuwb"><big id="pjuwb"></big></pre></span></pre><cite id="pjuwb"><fieldset id="pjuwb"><s id="pjuwb"><rt id="pjuwb"></rt></s></fieldset></cite><big id="pjuwb"><progress id="pjuwb"><big id="pjuwb"></big></progress></big><samp id="pjuwb"><delect id="pjuwb"></delect></samp><dl id="pjuwb"></dl><strike id="pjuwb"><nav id="pjuwb"><dl id="pjuwb"><strong id="pjuwb"></strong></dl></nav></strike><tbody id="pjuwb"><b id="pjuwb"><optgroup id="pjuwb"><rp id="pjuwb"></rp></optgroup></b></tbody><em id="pjuwb"></em><xmp id="pjuwb"><blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote></xmp> <i id="pjuwb"><abbr id="pjuwb"><i id="pjuwb"><abbr id="pjuwb"></abbr></i></abbr></i><center id="pjuwb"><acronym id="pjuwb"><center id="pjuwb"></center></acronym></center><pre id="pjuwb"></pre><ul id="pjuwb"><thead id="pjuwb"></thead></ul><blockquote id="pjuwb"><pre id="pjuwb"><sup id="pjuwb"></sup></pre></blockquote><acronym id="pjuwb"></acronym><big id="pjuwb"><s id="pjuwb"></s></big><th id="pjuwb"></th><th id="pjuwb"></th><tbody id="pjuwb"></tbody><thead id="pjuwb"><strike id="pjuwb"></strike></thead><th id="pjuwb"><dl id="pjuwb"><wbr id="pjuwb"></wbr></dl></th><dl id="pjuwb"><strong id="pjuwb"></strong></dl><abbr id="pjuwb"><noframes id="pjuwb"><noscript id="pjuwb"></noscript></noframes></abbr><td id="pjuwb"><ol id="pjuwb"></ol></td><li id="pjuwb"><noscript id="pjuwb"><abbr id="pjuwb"></abbr></noscript></li><small id="pjuwb"><bdo id="pjuwb"><nav id="pjuwb"></nav></bdo></small><style id="pjuwb"></style><optgroup id="pjuwb"><table id="pjuwb"></table></optgroup><center id="pjuwb"><tr id="pjuwb"><dfn id="pjuwb"></dfn></tr></center><th id="pjuwb"></th><u id="pjuwb"></u><tfoot id="pjuwb"><legend id="pjuwb"><i id="pjuwb"></i></legend></tfoot><mark id="pjuwb"></mark><meter id="pjuwb"></meter><nav id="pjuwb"></nav><acronym id="pjuwb"><pre id="pjuwb"><acronym id="pjuwb"><ul id="pjuwb"></ul></acronym></pre></acronym><acronym id="pjuwb"><pre id="pjuwb"><acronym id="pjuwb"><ul id="pjuwb"></ul></acronym></pre></acronym><nobr id="pjuwb"></nobr><sub id="pjuwb"><th id="pjuwb"><menuitem id="pjuwb"><wbr id="pjuwb"></wbr></menuitem></th></sub><thead id="pjuwb"><sub id="pjuwb"></sub></thead><ul id="pjuwb"><address id="pjuwb"><menuitem id="pjuwb"><meter id="pjuwb"></meter></menuitem></address></ul><dfn id="pjuwb"></dfn><pre id="pjuwb"></pre><input id="pjuwb"><cite id="pjuwb"><fieldset id="pjuwb"></fieldset></cite></input><u id="pjuwb"><form id="pjuwb"><u id="pjuwb"></u></form></u><kbd id="pjuwb"><em id="pjuwb"><mark id="pjuwb"></mark></em></kbd><tr id="pjuwb"></tr><del id="pjuwb"><form id="pjuwb"><address id="pjuwb"></address></form></del><tfoot id="pjuwb"><legend id="pjuwb"><ol id="pjuwb"><dl id="pjuwb"></dl></ol></legend></tfoot><menu id="pjuwb"><nobr id="pjuwb"><th id="pjuwb"><nobr id="pjuwb"></nobr></th></nobr></menu><fieldset id="pjuwb"></fieldset><pre id="pjuwb"><blockquote id="pjuwb"><samp id="pjuwb"></samp></blockquote></pre><xmp id="pjuwb"><sup id="pjuwb"><pre id="pjuwb"></pre></sup></xmp><span id="pjuwb"><progress id="pjuwb"></progress></span><font id="pjuwb"></font><var id="pjuwb"><abbr id="pjuwb"></abbr></var><strong id="pjuwb"><label id="pjuwb"><i id="pjuwb"><legend id="pjuwb"></legend></i></label></strong><tr id="pjuwb"><em id="pjuwb"><em id="pjuwb"><output id="pjuwb"></output></em></em></tr><thead id="pjuwb"><strike id="pjuwb"></strike></thead> <acronym id="pjuwb"></acronym><i id="pjuwb"></i><tt id="pjuwb"></tt><rt id="pjuwb"><source id="pjuwb"><rt id="pjuwb"></rt></source></rt><strike id="pjuwb"><acronym id="pjuwb"></acronym></strike><del id="pjuwb"></del><font id="pjuwb"><output id="pjuwb"><ins id="pjuwb"><output id="pjuwb"></output></ins></output></font><kbd id="pjuwb"><tr id="pjuwb"><kbd id="pjuwb"></kbd></tr></kbd><pre id="pjuwb"><sup id="pjuwb"><delect id="pjuwb"><samp id="pjuwb"></samp></delect></sup></pre><samp id="pjuwb"></samp><track id="pjuwb"></track><tr id="pjuwb"></tr><center id="pjuwb"></center><fieldset id="pjuwb"></fieldset><i id="pjuwb"></i><td id="pjuwb"></td><rt id="pjuwb"></rt><object id="pjuwb"></object><pre id="pjuwb"><progress id="pjuwb"><sub id="pjuwb"><thead id="pjuwb"></thead></sub></progress></pre><kbd id="pjuwb"><tr id="pjuwb"><option id="pjuwb"></option></tr></kbd><output id="pjuwb"><ins id="pjuwb"></ins></output><ol id="pjuwb"></ol><source id="pjuwb"></source><strong id="pjuwb"></strong><ruby id="pjuwb"></ruby><sub id="pjuwb"><meter id="pjuwb"><menuitem id="pjuwb"><meter id="pjuwb"></meter></menuitem></meter></sub><pre id="pjuwb"></pre><center id="pjuwb"></center><tr id="pjuwb"><tbody id="pjuwb"><xmp id="pjuwb"><dd id="pjuwb"></dd></xmp></tbody></tr><video id="pjuwb"></video><pre id="pjuwb"></pre><form id="pjuwb"><optgroup id="pjuwb"></optgroup></form><samp id="pjuwb"></samp><kbd id="pjuwb"></kbd><strong id="pjuwb"><option id="pjuwb"></option></strong><object id="pjuwb"></object><abbr id="pjuwb"><noframes id="pjuwb"><abbr id="pjuwb"></abbr></noframes></abbr><ul id="pjuwb"><del id="pjuwb"><button id="pjuwb"><pre id="pjuwb"></pre></button></del></ul><abbr id="pjuwb"></abbr><strong id="pjuwb"><code id="pjuwb"><strong id="pjuwb"></strong></code></strong><option id="pjuwb"></option><optgroup id="pjuwb"><bdo id="pjuwb"><code id="pjuwb"></code></bdo></optgroup><mark id="pjuwb"><em id="pjuwb"><font id="pjuwb"></font></em></mark><acronym id="pjuwb"><code id="pjuwb"></code></acronym><dl id="pjuwb"></dl><em id="pjuwb"></em><object id="pjuwb"><input id="pjuwb"><object id="pjuwb"></object></input></object><output id="pjuwb"><dd id="pjuwb"></dd></output><option id="pjuwb"><button id="pjuwb"><option id="pjuwb"></option></button></option><small id="pjuwb"></small></div> <a href="http://8x588.com" target="_blank">欧美与欧洲交xxxx免费观看</a>| <a href="http://989766.com" target="_blank">蜜桃av一区二区三区</a>| <a href="http://quintostdio.com" target="_blank">久久er精品视频</a>| <a href="http://jzsp94.com" target="_blank">亚洲女性裸体视频</a>| <a href="http://zjkgjt.com" target="_blank">亚洲欧美自拍偷拍</a>| <a href="http://ycpeixun.com" target="_blank">欧美一区二区视频网站</a>| <a href="http://wwwavtb1122.com" target="_blank">欧美专区在线观看一区</a>| <a href="http://987kt.com" target="_blank">欧美一区二区性</a>| <a href="http://chinagreetown.com" target="_blank">西西裸体人体做爰大胆久久久</a>| <a href="http://www38044.com" target="_blank">亚洲一区二区在线</a>| <a href="http://894322.com" target="_blank">香蕉亚洲视频</a>| <a href="http://gykfqzgpt.com" target="_blank">久久久人成影片一区二区三区观看 </a>| <a href="http://zhijiasd.com" target="_blank">国产亚洲欧美色</a>| <a href="http://jpqueyou.com" target="_blank">国产主播精品在线</a>| <a href="http://099553.com" target="_blank">亚洲国产精品久久久久秋霞不卡</a>| <a href="http://cibocentre.com" target="_blank">亚洲国产精品女人久久久</a>| <a href="http://www-34909.com" target="_blank">日韩视频在线一区二区三区</a>| <a href="http://www3344cao.com" target="_blank">一区二区三区黄色</a>| <a href="http://fanwenok.com" target="_blank">久久国产88</a>| <a href="http://725443.com" target="_blank">亚洲激情另类</a>| <a href="http://03qt.com" target="_blank">亚洲精品日韩在线</a>| <a href="http://cswlts.com" target="_blank">欧美亚洲视频一区二区</a>| <a href="http://dahuxu.com" target="_blank">男女激情久久</a>| <a href="http://176sfsf.com" target="_blank">国产精品一区二区黑丝</a>| <a href="http://555346.com" target="_blank">亚洲国产精品一区二区第四页av </a>| <a href="http://805185.com" target="_blank">亚洲一区二区视频在线</a>| <a href="http://dd8uau0ncu.com" target="_blank">久久电影一区</a>| <a href="http://770456.com" target="_blank">欧美人与性动交a欧美精品</a>| <a href="http://kk66mm.com" target="_blank">国产精品香蕉在线观看</a>| <a href="http://saobi6.com" target="_blank">在线日韩av永久免费观看</a>| <a href="http://gztcm01.com" target="_blank">一本色道久久综合亚洲二区三区</a>| <a href="http://66y3.com" target="_blank">欧美亚洲三区</a>| <a href="http://cn1898.com" target="_blank">亚洲精品在线电影</a>| <a href="http://5599912.com" target="_blank">久久久av水蜜桃</a>| <a href="http://4430x.com" target="_blank">欧美性生交xxxxx久久久</a>| <a href="http://www-4157.com" target="_blank">韩国成人理伦片免费播放</a>| <a href="http://9928k.com" target="_blank">亚洲精品久久久一区二区三区</a>| <a href="http://666777v3.com" target="_blank">一区二区三区四区五区精品视频</a>| <a href="http://idc0558.com" target="_blank">久久亚洲私人国产精品va</a>| <a href="http://4534com.com" target="_blank">日韩小视频在线观看专区</a>| <a href="http://pgd857.com" target="_blank">久久久国产91</a>| <a href="http://fc3332.com" target="_blank">国产欧美日本一区二区三区</a>| <a href="http://669528.com" target="_blank">日韩视频不卡中文</a>| <a href="http://tsjcmm.com" target="_blank">噜噜噜躁狠狠躁狠狠精品视频 </a>| <a href="http://zhaosaoz.com" target="_blank">欧美久久影院</a>| <a href="http://www5566szy.com" target="_blank">黄色成人免费观看</a>| <a href="http://caox8.com" target="_blank">香蕉视频成人在线观看 </a>| <a href="http://2220004.com" target="_blank">亚洲国产裸拍裸体视频在线观看乱了</a>| <a href="http://667939.com" target="_blank">国产一区二区三区在线观看精品 </a>| <a href="http://www280999.com" target="_blank">99精品视频免费观看视频</a>| <a href="http://ydy8.com" target="_blank">久久久久国内</a>| <a href="http://qqcf9900.com" target="_blank">国产综合自拍</a>| <a href="http://ww245434.com" target="_blank">欧美一区二区三区精品 </a>| <a href="http://5917t.com" target="_blank">在线视频欧美一区</a>| <a href="http://by722777.com" target="_blank">欧美黑人国产人伦爽爽爽</a>| <a href="http://8x588.com" target="_blank">激情欧美亚洲</a>| <a href="http://ythbhg.com" target="_blank">久久久久国产精品www</a>| <a href="http://72avav.com" target="_blank">亚洲一级一区</a>| <a href="http://sewuyueyue.com" target="_blank">国产精品电影观看</a>| <a href="http://go1818.com" target="_blank">正在播放亚洲</a>| <a href="http://nebnb89.com" target="_blank">日韩午夜激情av</a>| <a href="http://wwwavtb1122.com" target="_blank">亚洲精品免费看</a>| <a href="http://www38ccc.com" target="_blank">欧美电影在线</a>| <a href="http://rezel-zj.com" target="_blank">亚洲精品免费在线播放</a>| <a href="http://www-452.com" target="_blank">99在线精品免费视频九九视</a>| <a href="http://360695.com" target="_blank">欧美大片专区</a>| <a href="http://660507ww.com" target="_blank">欧美激情一区在线</a>| <a href="http://bodabloc.com" target="_blank">久久影音先锋</a>| <a href="http://aqdw2021.com" target="_blank">91久久综合</a>| <a href="http://hhhtalk.com" target="_blank">亚洲区一区二</a>| <a href="http://677968.com" target="_blank">欧美精品国产精品日韩精品</a>| <a href="http://gs-qintai.com" target="_blank">亚洲人www</a>| <a href="http://789583.com" target="_blank">亚洲激情视频在线播放</a>| <a href="http://www-222kkk.com" target="_blank">欧美黄在线观看</a>| <a href="http://www901aaa.com" target="_blank">99国产精品视频免费观看</a>| <a href="http://ythbhg.com" target="_blank">日韩午夜一区</a>| <a href="http://18loutv.com" target="_blank">国产精品视频精品视频</a>| <a href="http://6w7y.com" target="_blank">久久福利一区</a>| <a href="http://cnm24.com" target="_blank">久久亚洲欧美国产精品乐播</a>| <a href="http://luluse882.com" target="_blank">在线观看欧美日韩</a>| <a href="http://mmmm26.com" target="_blank">亚洲电影在线观看</a>| <a href="http://85181890.com" target="_blank">欧美日韩另类国产亚洲欧美一级</a>| <a href="http://xxdd19.com" target="_blank">在线天堂一区av电影</a>| <a href="http://5xxm.com" target="_blank">亚洲综合成人婷婷小说</a>| <a href="http://maomi54.com" target="_blank">精品动漫3d一区二区三区</a>| <a href="http://91mdtv.com" target="_blank">亚洲激情电影在线</a>| <a href="http://jxchunlong.com" target="_blank">国产美女高潮久久白浆</a>| <a href="http://xzvaz.com" target="_blank">欧美不卡在线</a>| <a href="http://ynjzwh.com" target="_blank">国产精品va在线播放我和闺蜜</a>| <a href="http://birhit.com" target="_blank">久久国产精品久久国产精品</a>| <a href="http://987527.com" target="_blank">久久伊人免费视频</a>| <a href="http://www-ty177.com" target="_blank">亚洲色图综合久久</a>| <a href="http://yyyy456.com" target="_blank">欧美一级淫片aaaaaaa视频</a>| <a href="http://www25sds.com" target="_blank">国内精品视频一区</a>| <a href="http://fxsdcj.com" target="_blank">亚洲国产精品一区制服丝袜 </a>| <a href="http://hankanzhan.com" target="_blank">欧美有码视频</a>| <a href="http://687673.com" target="_blank">欧美激情久久久久</a>| <a href="http://123-sj.com" target="_blank">久久激情婷婷</a>| <a href="http://booyitech.com" target="_blank">欧美激情亚洲精品</a>| <a href="http://m10669.com" target="_blank">久久精品一区四区</a>| <a href="http://7a6a.com" target="_blank">欧美精品入口</a>| <a href="http://xxx6688.com" target="_blank">久久www成人_看片免费不卡</a>| <a href="http://qqqtrip.com" target="_blank">欧美视频在线一区二区三区</a>| <a href="http://hbsmhy.com" target="_blank">久久爱www.</a>| <a href="http://www-136445.com" target="_blank">欧美va亚洲va国产综合</a>| <a href="http://caopormo.com" target="_blank">亚洲永久字幕</a>| <a href="http://8888590.com" target="_blank">久久伊人精品天天</a>| <a href="http://26cs.com" target="_blank">欧美尤物巨大精品爽</a>| <a href="http://044925.com" target="_blank">99国产欧美久久久精品</a>| <a href="http://6w7y.com" target="_blank">黄色一区二区在线</a>| <a href="http://www-44899.com" target="_blank">一本一道久久综合狠狠老精东影业</a>| <a href="http://405151.com" target="_blank">国产欧美一区二区三区沐欲 </a>| <a href="http://66666556.com" target="_blank">猫咪成人在线观看</a>| <a href="http://nmbgbc.com" target="_blank">欧美特黄a级高清免费大片a级</a>| <a href="http://91ymz.com" target="_blank">久久久久久亚洲综合影院红桃</a>| <a href="http://710691.com" target="_blank">欧美乱人伦中文字幕在线</a>| <a href="http://www47011.com" target="_blank">久久全球大尺度高清视频</a>| <a href="http://cmtqd.com" target="_blank">国产精品www994</a>| <a href="http://cqrehoo.com" target="_blank">亚洲激情视频在线播放</a>| <a href="http://vipaqdx29.com" target="_blank">黄色成人在线观看</a>| <a href="http://www47067.com" target="_blank">亚洲欧美日韩在线不卡</a>| <a href="http://www47067.com" target="_blank">一区二区成人精品</a>| <a href="http://xkm663y.com" target="_blank">av不卡在线</a>| <a href="http://5917t.com" target="_blank">99国产精品国产精品久久</a>| <a href="http://667996.com" target="_blank">久久精品国产精品亚洲精品</a>| <a href="http://wwwgay456.com" target="_blank">亚洲在线第一页</a>| <a href="http://cqjk120.com" target="_blank">欧美久久久久中文字幕</a>| <a href="http://3344568.com" target="_blank">欧美国产在线视频</a>| <a href="http://xxdd51.com" target="_blank">精品999网站</a>| <a href="http://51120guahao.com" target="_blank">亚洲成在人线av</a>| <a href="http://www297777.com" target="_blank">韩国av一区二区三区四区</a>| <a href="http://6168138.com" target="_blank">亚洲一区欧美激情</a>| <a href="http://ategpu.com" target="_blank">又紧又大又爽精品一区二区</a>| <a href="http://1369080.com" target="_blank">午夜视黄欧洲亚洲</a>| <a href="http://44779c.com" target="_blank">久久精品99无色码中文字幕</a>| <a href="http://ssni888.com" target="_blank">国产精品久久久久三级</a>| <a href="http://456985.com" target="_blank">一区二区欧美在线</a>| <a href="http://www-18873.com" target="_blank">亚洲一区二区毛片</a>| <a href="http://huaihuaihuai.com" target="_blank">欧美体内she精视频</a>| <a href="http://7555hh.com" target="_blank">亚洲激情一区二区</a>| <a href="http://ourskycity.com" target="_blank">亚洲人成网站777色婷婷</a>| <a href="http://bizssr.com" target="_blank">久久人91精品久久久久久不卡</a>| <a href="http://www-65581.com" target="_blank">久久久久久久激情视频</a>| <a href="http://www497171a.com" target="_blank">国产在线视频不卡二</a>| <a href="http://73cao.com" target="_blank">久久成人18免费观看</a>| <a href="http://duoying668.com" target="_blank">久久久久国产免费免费</a>| <a href="http://3333347.com" target="_blank">国模套图日韩精品一区二区</a>| <a href="http://duoying668.com" target="_blank">欧美一区二区三区视频在线</a>| <a href="http://www47755.com" target="_blank">久久riav二区三区</a>| <a href="http://iotbzw.com" target="_blank">国产一级揄自揄精品视频</a>| <a href="http://430390.com" target="_blank">欧美一区二区三区精品</a>| <a href="http://899399com.com" target="_blank">久久久国产精彩视频美女艺术照福利</a>| <a href="http://woaigougou.com" target="_blank">国产精品免费福利</a>| <a href="http://cnlbogs.com" target="_blank">亚久久调教视频</a>| <a href="http://xinghejiuye.com" target="_blank">免费观看亚洲视频大全</a>| <a href="http://proenhub.com" target="_blank">亚洲福利视频网站</a>| <a href="http://91x8.com" target="_blank">欧美精品一级</a>| <a href="http://797298.com" target="_blank">亚洲一区二区高清</a>| <a href="http://cnxwlm.com" target="_blank">久久久久.com</a>| <a href="http://687673.com" target="_blank">亚洲激情小视频</a>| <a href="http://zzchanke.com" target="_blank">欧美日韩国内</a>| <a href="http://39ddtv.com" target="_blank">亚洲欧美国产高清va在线播</a>| <a href="http://428820.com" target="_blank">久久全球大尺度高清视频</a>| <a href="http://chongpiapia.com" target="_blank">亚洲第一天堂无码专区</a>| <a href="http://www8qa.com" target="_blank">欧美日本韩国在线</a>| <a href="http://tuiliqi.com" target="_blank">午夜久久久久久</a>| <a href="http://www-798009.com" target="_blank">欧美国内亚洲</a>| <a href="http://805185.com" target="_blank">在线中文字幕不卡</a>| <a href="http://mxkaozi.com" target="_blank">一级日韩一区在线观看</a>| <a href="http://4986888.com" target="_blank">国产精品久久一级</a>| <a href="http://fanwenok.com" target="_blank">狼人社综合社区</a>| <a href="http://aqdit2022.com" target="_blank">在线中文字幕一区</a>| <a href="http://as777as.com" target="_blank">美女精品网站</a>| <a href="http://000695.com" target="_blank">亚洲一区三区在线观看</a>| <a href="http://cczm4.com" target="_blank">国精品一区二区</a>| <a href="http://baigoso.com" target="_blank">欧美日本不卡高清</a>| <a href="http://868482.com" target="_blank">欧美一区二区三区视频在线 </a>| <a href="http://5657hh.com" target="_blank">亚洲美女黄色片</a>| <a href="http://www99mmnn.com" target="_blank">国产精品日韩专区</a>| <a href="http://xmzszx.com" target="_blank">麻豆精品视频</a>| <a href="http://270909.com" target="_blank">亚洲一区二区精品在线</a>| <a href="http://0855123.com" target="_blank">久久亚洲国产精品日日av夜夜</a>| <a href="http://qiaoka526.com" target="_blank">亚洲国产精品久久久久秋霞蜜臀</a>| <a href="http://7v51.com" target="_blank">亚洲欧美乱综合</a>| <a href="http://www-26333com.com" target="_blank">亚洲国产欧美国产综合一区</a>| <a href="http://goldure.com" target="_blank">亚洲在线视频免费观看</a>| <a href="http://xiuxiu124.com" target="_blank">亚洲第一天堂av</a>| <a href="http://7777731.com" target="_blank">国产色产综合产在线视频</a>| <a href="http://884v.com" target="_blank">免费日韩av</a>| <a href="http://9966k.com" target="_blank">欧美诱惑福利视频</a>| <a href="http://huohuoglobal.com" target="_blank">一本一本a久久</a>| <a href="http://77xyc77.com" target="_blank">亚洲第一区在线</a>| <a href="http://tinganji.com" target="_blank">久久婷婷av</a>| <a href="http://caosee.com" target="_blank">欧美亚洲视频在线看网址</a>| <a href="http://www-ty66.com" target="_blank">在线精品国产欧美</a>| <a href="http://exsecular.com" target="_blank">国产伦理精品不卡</a>| <a href="http://3314133.com" target="_blank">欧美日韩免费观看一区二区三区</a>| <a href="http://845821.com" target="_blank">久久久久se</a>| <a href="http://122332.com" target="_blank">午夜精品免费在线</a>| <a href="http://saomm18.com" target="_blank">在线亚洲精品</a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>