锘??xml version="1.0" encoding="utf-8" standalone="yes"?>一区二区高清在线观看,国产一区二区欧美,欧美日韩不卡http://m.shnenglu.com/sunicdavy/archive/2021/12/27/217894.html鎴橀瓊灝忕瓚鎴橀瓊灝忕瓚Mon, 27 Dec 2021 11:04:00 GMThttp://m.shnenglu.com/sunicdavy/archive/2021/12/27/217894.htmlhttp://m.shnenglu.com/sunicdavy/comments/217894.htmlhttp://m.shnenglu.com/sunicdavy/archive/2021/12/27/217894.html#Feedback0http://m.shnenglu.com/sunicdavy/comments/commentRss/217894.htmlhttp://m.shnenglu.com/sunicdavy/services/trackbacks/217894.html http://zhidao.baixing.com/question/11522863.html

http://zhidao.baixing.com/question/11522867.html

http://zhidao.baixing.com/question/11522873.html

http://zhidao.baixing.com/question/11522877.html

http://zhidao.baixing.com/question/11522881.html

http://zhidao.baixing.com/question/11522889.html

http://zhidao.baixing.com/question/11522891.html

http://zhidao.baixing.com/question/11522896.html

http://zhidao.baixing.com/question/11522897.html

http://zhidao.baixing.com/question/11522899.html

http://zhidao.baixing.com/question/11522901.html

http://zhidao.baixing.com/question/11522904.html

http://zhidao.baixing.com/question/11522910.html

http://zhidao.baixing.com/question/11522911.html

http://zhidao.baixing.com/question/11522912.html

http://zhidao.baixing.com/question/11522913.html

http://zhidao.baixing.com/question/11522916.html

http://zhidao.baixing.com/question/11522917.html

http://zhidao.baixing.com/question/11522923.html

http://zhidao.baixing.com/question/11522925.html

http://zhidao.baixing.com/question/11522931.html

http://zhidao.baixing.com/question/11522935.html

http://zhidao.baixing.com/question/11522936.html

http://zhidao.baixing.com/question/11522942.html

http://zhidao.baixing.com/question/11522945.html

http://zhidao.baixing.com/question/11522949.html

http://zhidao.baixing.com/question/11522952.html

http://zhidao.baixing.com/question/11522957.html

http://zhidao.baixing.com/question/11522962.html

http://zhidao.baixing.com/question/11522966.html

http://zhidao.baixing.com/question/11522968.html

http://zhidao.baixing.com/question/11522969.html

http://zhidao.baixing.com/question/11522971.html

http://zhidao.baixing.com/question/11522972.html

http://zhidao.baixing.com/question/11522976.html

http://zhidao.baixing.com/question/11522977.html

http://zhidao.baixing.com/question/11522979.html

http://zhidao.baixing.com/question/11522981.html

http://zhidao.baixing.com/question/11522982.html

http://zhidao.baixing.com/question/11522986.html

http://zhidao.baixing.com/question/11522990.html

http://zhidao.baixing.com/question/11522991.html

http://zhidao.baixing.com/question/11522993.html

http://zhidao.baixing.com/question/11522994.html

http://zhidao.baixing.com/question/11522999.html

http://zhidao.baixing.com/question/11523001.html

http://zhidao.baixing.com/question/11523002.html

http://zhidao.baixing.com/question/11523008.html

http://zhidao.baixing.com/question/11523011.html

http://zhidao.baixing.com/question/11523014.html

http://zhidao.baixing.com/question/11523017.html

http://zhidao.baixing.com/question/11523020.html

http://zhidao.baixing.com/question/11523023.html

http://zhidao.baixing.com/question/11523025.html

http://zhidao.baixing.com/question/11523028.html

http://zhidao.baixing.com/question/11523029.html

http://zhidao.baixing.com/question/11523035.html

http://zhidao.baixing.com/question/11523038.html

http://zhidao.baixing.com/question/11523042.html

http://zhidao.baixing.com/question/11523044.html

http://zhidao.baixing.com/question/11523045.html

http://zhidao.baixing.com/question/11523047.html

http://zhidao.baixing.com/question/11523049.html

http://zhidao.baixing.com/question/11523061.html

http://zhidao.baixing.com/question/11523063.html

http://zhidao.baixing.com/question/11523065.html

http://zhidao.baixing.com/question/11523066.html

http://zhidao.baixing.com/question/11523068.html

http://zhidao.baixing.com/question/11523076.html

http://zhidao.baixing.com/question/11523077.html

http://zhidao.baixing.com/question/11523082.html

http://zhidao.baixing.com/question/11523085.html

http://zhidao.baixing.com/question/11523086.html

http://zhidao.baixing.com/question/11523088.html

http://zhidao.baixing.com/question/11523093.html

http://zhidao.baixing.com/question/11523097.html

http://zhidao.baixing.com/question/11523098.html

http://zhidao.baixing.com/question/11523100.html

http://zhidao.baixing.com/question/11523102.html

http://zhidao.baixing.com/question/11523106.html

http://zhidao.baixing.com/question/11523109.html

http://zhidao.baixing.com/question/11523111.html

http://zhidao.baixing.com/question/11523113.html

http://zhidao.baixing.com/question/11523115.html

http://zhidao.baixing.com/question/11523116.html

http://zhidao.baixing.com/question/11523119.html

http://zhidao.baixing.com/question/11523121.html

http://zhidao.baixing.com/question/11523123.html

http://zhidao.baixing.com/question/11523125.html

http://zhidao.baixing.com/question/11523127.html

http://zhidao.baixing.com/question/11523132.html

http://zhidao.baixing.com/question/11523134.html

http://zhidao.baixing.com/question/11523136.html

http://zhidao.baixing.com/question/11523137.html

http://zhidao.baixing.com/question/11523139.html

http://zhidao.baixing.com/question/11523144.html

http://zhidao.baixing.com/question/11523147.html

http://zhidao.baixing.com/question/11523150.html

http://zhidao.baixing.com/question/11523151.html

http://zhidao.baixing.com/question/11523153.html

http://zhidao.baixing.com/question/11523155.html

http://zhidao.baixing.com/question/11523156.html

http://zhidao.baixing.com/question/11523159.html

http://zhidao.baixing.com/question/11523161.html

http://zhidao.baixing.com/question/11523164.html

http://zhidao.baixing.com/question/11523165.html

http://zhidao.baixing.com/question/11523168.html

http://zhidao.baixing.com/question/11523170.html

http://zhidao.baixing.com/question/11523171.html

http://zhidao.baixing.com/question/11523172.html

http://zhidao.baixing.com/question/11523173.html

http://zhidao.baixing.com/question/11523182.html

http://zhidao.baixing.com/question/11523184.html

http://zhidao.baixing.com/question/11523186.html

http://zhidao.baixing.com/question/11523188.html

http://zhidao.baixing.com/question/11523190.html

http://zhidao.baixing.com/question/11523196.html

http://zhidao.baixing.com/question/11523201.html

http://zhidao.baixing.com/question/11523203.html

http://zhidao.baixing.com/question/11523204.html

http://zhidao.baixing.com/question/11523206.html

http://zhidao.baixing.com/question/11523207.html

http://zhidao.baixing.com/question/11523213.html

http://zhidao.baixing.com/question/11523217.html

http://zhidao.baixing.com/question/11523220.html

http://zhidao.baixing.com/question/11523223.html

http://zhidao.baixing.com/question/11523225.html

http://zhidao.baixing.com/question/11523228.html

http://zhidao.baixing.com/question/11523230.html

http://zhidao.baixing.com/question/11523232.html

http://zhidao.baixing.com/question/11523234.html

http://zhidao.baixing.com/question/11523235.html

http://zhidao.baixing.com/question/11523237.html

http://zhidao.baixing.com/question/11523240.html

http://zhidao.baixing.com/question/11523242.html

http://zhidao.baixing.com/question/11523245.html

http://zhidao.baixing.com/question/11523248.html

http://zhidao.baixing.com/question/11523251.html

http://zhidao.baixing.com/question/11523254.html

http://zhidao.baixing.com/question/11523258.html

http://zhidao.baixing.com/question/11523262.html

http://zhidao.baixing.com/question/11523267.html

http://zhidao.baixing.com/question/11523268.html

http://zhidao.baixing.com/question/11523272.html

http://zhidao.baixing.com/question/11523277.html

http://zhidao.baixing.com/question/11523280.html

http://zhidao.baixing.com/question/11523281.html

http://zhidao.baixing.com/question/11523282.html

http://zhidao.baixing.com/question/11523287.html

http://zhidao.baixing.com/question/11523292.html

http://zhidao.baixing.com/question/11523298.html

http://zhidao.baixing.com/question/11523299.html

http://zhidao.baixing.com/question/11523301.html

http://zhidao.baixing.com/question/11523304.html

http://zhidao.baixing.com/question/11523305.html

http://zhidao.baixing.com/question/11523310.html

http://zhidao.baixing.com/question/11523312.html

http://zhidao.baixing.com/question/11523316.html

http://zhidao.baixing.com/question/11523320.html

http://zhidao.baixing.com/question/11523323.html

http://zhidao.baixing.com/question/11523325.html

http://zhidao.baixing.com/question/11523328.html

http://zhidao.baixing.com/question/11523330.html

http://zhidao.baixing.com/question/11523333.html

http://zhidao.baixing.com/question/11523337.html

http://zhidao.baixing.com/question/11523341.html

http://zhidao.baixing.com/question/11523345.html

http://zhidao.baixing.com/question/11523351.html

http://zhidao.baixing.com/question/11523355.html

http://zhidao.baixing.com/question/11523358.html

http://zhidao.baixing.com/question/11523360.html

http://zhidao.baixing.com/question/11523363.html

http://zhidao.baixing.com/question/11523367.html

http://zhidao.baixing.com/question/11523371.html

http://zhidao.baixing.com/question/11523375.html

http://zhidao.baixing.com/question/11523378.html

http://zhidao.baixing.com/question/11523380.html

http://zhidao.baixing.com/question/11523383.html

http://zhidao.baixing.com/question/11523386.html

http://zhidao.baixing.com/question/11523389.html

http://zhidao.baixing.com/question/11523394.html

http://zhidao.baixing.com/question/11523396.html

http://zhidao.baixing.com/question/11523399.html

http://zhidao.baixing.com/question/11523400.html

http://zhidao.baixing.com/question/11523404.html

http://zhidao.baixing.com/question/11523406.html

http://zhidao.baixing.com/question/11523412.html

http://zhidao.baixing.com/question/11523418.html

http://zhidao.baixing.com/question/11523422.html

http://zhidao.baixing.com/question/11523425.html

http://zhidao.baixing.com/question/11523428.html

http://zhidao.baixing.com/question/11523430.html

http://zhidao.baixing.com/question/11523432.html

http://zhidao.baixing.com/question/11523437.html

http://zhidao.baixing.com/question/11523441.html

http://zhidao.baixing.com/question/11523445.html

http://zhidao.baixing.com/question/11523446.html

http://zhidao.baixing.com/question/11523449.html

http://zhidao.baixing.com/question/11523452.html

http://zhidao.baixing.com/question/11523454.html

http://zhidao.baixing.com/question/11523460.html

http://zhidao.baixing.com/question/11523461.html

http://zhidao.baixing.com/question/11523468.html

http://zhidao.baixing.com/question/11523472.html

http://zhidao.baixing.com/question/11523475.html

http://zhidao.baixing.com/question/11523478.html

http://zhidao.baixing.com/question/11523481.html

http://zhidao.baixing.com/question/11523482.html

http://zhidao.baixing.com/question/11523485.html

http://zhidao.baixing.com/question/11523487.html

http://zhidao.baixing.com/question/11523492.html

http://zhidao.baixing.com/question/11523494.html

http://zhidao.baixing.com/question/11523500.html

http://zhidao.baixing.com/question/11523501.html

http://zhidao.baixing.com/question/11523502.html

http://zhidao.baixing.com/question/11523506.html

http://zhidao.baixing.com/question/11523509.html

http://zhidao.baixing.com/question/11523516.html

http://zhidao.baixing.com/question/11523521.html

http://zhidao.baixing.com/question/11523525.html

http://zhidao.baixing.com/question/11523530.html

http://zhidao.baixing.com/question/11523533.html

http://zhidao.baixing.com/question/11523534.html

http://zhidao.baixing.com/question/11523537.html

http://zhidao.baixing.com/question/11523539.html

http://zhidao.baixing.com/question/11523541.html

http://zhidao.baixing.com/question/11523543.html

http://zhidao.baixing.com/question/11523547.html

http://zhidao.baixing.com/question/11523550.html

http://zhidao.baixing.com/question/11523551.html

http://zhidao.baixing.com/question/11523554.html

http://zhidao.baixing.com/question/11523555.html

http://zhidao.baixing.com/question/11523561.html

http://zhidao.baixing.com/question/11523565.html

http://zhidao.baixing.com/question/11523572.html

http://zhidao.baixing.com/question/11523574.html

http://zhidao.baixing.com/question/11523580.html

http://zhidao.baixing.com/question/11523581.html

http://zhidao.baixing.com/question/11523583.html

http://zhidao.baixing.com/question/11523584.html

http://zhidao.baixing.com/question/11523592.html

http://zhidao.baixing.com/question/11523596.html

http://zhidao.baixing.com/question/11523599.html

http://zhidao.baixing.com/question/11523601.html

http://zhidao.baixing.com/question/11523605.html

http://zhidao.baixing.com/question/11523607.html

http://zhidao.baixing.com/question/11523613.html

http://zhidao.baixing.com/question/11523614.html

http://zhidao.baixing.com/question/11523616.html

http://zhidao.baixing.com/question/11523617.html

http://zhidao.baixing.com/question/11523620.html

http://zhidao.baixing.com/question/11523622.html

http://zhidao.baixing.com/question/11523623.html

http://zhidao.baixing.com/question/11523624.html

http://zhidao.baixing.com/question/11523625.html

http://zhidao.baixing.com/question/11523630.html

http://zhidao.baixing.com/question/11523633.html

http://zhidao.baixing.com/question/11523637.html

http://zhidao.baixing.com/question/11523638.html

http://zhidao.baixing.com/question/11523640.html

http://zhidao.baixing.com/question/11523641.html

http://zhidao.baixing.com/question/11523642.html

http://zhidao.baixing.com/question/11523643.html

http://zhidao.baixing.com/question/11523646.html

http://zhidao.baixing.com/question/11523648.html

http://zhidao.baixing.com/question/11523651.html

http://zhidao.baixing.com/question/11523653.html

http://zhidao.baixing.com/question/11523655.html

http://zhidao.baixing.com/question/11523656.html

http://zhidao.baixing.com/question/11523657.html

http://zhidao.baixing.com/question/11523660.html

http://zhidao.baixing.com/question/11523661.html

http://zhidao.baixing.com/question/11523665.html

http://zhidao.baixing.com/question/11523666.html

http://zhidao.baixing.com/question/11523669.html

http://zhidao.baixing.com/question/11523670.html

http://zhidao.baixing.com/question/11523673.html

http://zhidao.baixing.com/question/11523676.html

http://zhidao.baixing.com/question/11523678.html

http://zhidao.baixing.com/question/11523680.html

http://zhidao.baixing.com/question/11523685.html

http://zhidao.baixing.com/question/11523689.html

http://zhidao.baixing.com/question/11523693.html

http://zhidao.baixing.com/question/11523697.html

http://zhidao.baixing.com/question/11523700.html

http://zhidao.baixing.com/question/11523707.html

http://zhidao.baixing.com/question/11523711.html

http://zhidao.baixing.com/question/11523716.html

http://zhidao.baixing.com/question/11523719.html

http://zhidao.baixing.com/question/11523722.html

http://zhidao.baixing.com/question/11523724.html

http://zhidao.baixing.com/question/11523726.html

http://zhidao.baixing.com/question/11523728.html

http://zhidao.baixing.com/question/11523729.html

http://zhidao.baixing.com/question/11523736.html

http://zhidao.baixing.com/question/11523740.html

http://zhidao.baixing.com/question/11523742.html

http://zhidao.baixing.com/question/11523744.html

http://zhidao.baixing.com/question/11523746.html

http://zhidao.baixing.com/question/11523748.html

http://zhidao.baixing.com/question/11523753.html

http://zhidao.baixing.com/question/11523756.html

http://zhidao.baixing.com/question/11523757.html

http://zhidao.baixing.com/question/11523758.html

http://zhidao.baixing.com/question/11523759.html

http://zhidao.baixing.com/question/11523761.html

http://zhidao.baixing.com/question/11523763.html

http://zhidao.baixing.com/question/11523765.html

http://zhidao.baixing.com/question/11523767.html

http://zhidao.baixing.com/question/11523770.html

http://zhidao.baixing.com/question/11523772.html

http://zhidao.baixing.com/question/11523778.html

http://zhidao.baixing.com/question/11523779.html

http://zhidao.baixing.com/question/11523780.html

http://zhidao.baixing.com/question/11523783.html

http://zhidao.baixing.com/question/11523787.html

http://zhidao.baixing.com/question/11523791.html

http://zhidao.baixing.com/question/11523792.html

http://zhidao.baixing.com/question/11523794.html

http://zhidao.baixing.com/question/11523795.html

http://zhidao.baixing.com/question/11523796.html

http://zhidao.baixing.com/question/11523798.html

http://zhidao.baixing.com/question/11523802.html

http://zhidao.baixing.com/question/11523804.html

http://zhidao.baixing.com/question/11523805.html

http://zhidao.baixing.com/question/11523807.html

http://zhidao.baixing.com/question/11523812.html

http://zhidao.baixing.com/question/11523816.html

http://zhidao.baixing.com/question/11523819.html

http://zhidao.baixing.com/question/11523820.html

http://zhidao.baixing.com/question/11523822.html

http://zhidao.baixing.com/question/11523825.html

http://zhidao.baixing.com/question/11523826.html

http://zhidao.baixing.com/question/11523828.html

http://zhidao.baixing.com/question/11523830.html

http://zhidao.baixing.com/question/11523832.html

http://zhidao.baixing.com/question/11523834.html

http://zhidao.baixing.com/question/11523835.html

http://zhidao.baixing.com/question/11523839.html

http://zhidao.baixing.com/question/11523841.html

http://zhidao.baixing.com/question/11523845.html

http://zhidao.baixing.com/question/11523848.html

http://zhidao.baixing.com/question/11523849.html

http://zhidao.baixing.com/question/11523850.html

http://zhidao.baixing.com/question/11523851.html

http://zhidao.baixing.com/question/11523859.html

http://zhidao.baixing.com/question/11523861.html

http://zhidao.baixing.com/question/11523863.html

http://zhidao.baixing.com/question/11523864.html

http://zhidao.baixing.com/question/11523865.html

http://zhidao.baixing.com/question/11523867.html

http://zhidao.baixing.com/question/11523869.html

http://zhidao.baixing.com/question/11523874.html

http://zhidao.baixing.com/question/11523879.html

http://zhidao.baixing.com/question/11523884.html

http://zhidao.baixing.com/question/11523885.html

http://zhidao.baixing.com/question/11523887.html

http://zhidao.baixing.com/question/11523889.html

http://zhidao.baixing.com/question/11523891.html

http://zhidao.baixing.com/question/11523894.html

http://zhidao.baixing.com/question/11523895.html

http://zhidao.baixing.com/question/11523897.html

http://zhidao.baixing.com/question/11523899.html

http://zhidao.baixing.com/question/11523900.html

http://zhidao.baixing.com/question/11523905.html

http://zhidao.baixing.com/question/11523907.html

http://zhidao.baixing.com/question/11523911.html

http://zhidao.baixing.com/question/11523917.html

http://zhidao.baixing.com/question/11523919.html

http://zhidao.baixing.com/question/11523922.html

http://zhidao.baixing.com/question/11523923.html

http://zhidao.baixing.com/question/11523925.html

http://zhidao.baixing.com/question/11523928.html

http://zhidao.baixing.com/question/11523931.html

http://zhidao.baixing.com/question/11523932.html

http://zhidao.baixing.com/question/11523935.html

http://zhidao.baixing.com/question/11523939.html

http://zhidao.baixing.com/question/11523942.html

http://zhidao.baixing.com/question/11523945.html

http://zhidao.baixing.com/question/11523947.html

http://zhidao.baixing.com/question/11523948.html

http://zhidao.baixing.com/question/11523950.html

http://zhidao.baixing.com/question/11523958.html

http://zhidao.baixing.com/question/11523965.html

http://zhidao.baixing.com/question/11523970.html

http://zhidao.baixing.com/question/11523975.html

http://zhidao.baixing.com/question/11523977.html

http://zhidao.baixing.com/question/11523979.html

http://zhidao.baixing.com/question/11523980.html

http://zhidao.baixing.com/question/11523982.html

http://zhidao.baixing.com/question/11523988.html

http://zhidao.baixing.com/question/11523993.html

http://zhidao.baixing.com/question/11523997.html

http://zhidao.baixing.com/question/11523998.html

http://zhidao.baixing.com/question/11524005.html

http://zhidao.baixing.com/question/11524008.html

http://zhidao.baixing.com/question/11524009.html

http://zhidao.baixing.com/question/11524017.html

http://zhidao.baixing.com/question/11524023.html

http://zhidao.baixing.com/question/11524025.html

http://zhidao.baixing.com/question/11524029.html

http://zhidao.baixing.com/question/11524031.html

http://zhidao.baixing.com/question/11524032.html

http://zhidao.baixing.com/question/11524033.html

http://zhidao.baixing.com/question/11524035.html

http://zhidao.baixing.com/question/11524040.html

http://zhidao.baixing.com/question/11524045.html

http://zhidao.baixing.com/question/11524048.html

http://zhidao.baixing.com/question/11524053.html

http://zhidao.baixing.com/question/11524055.html

http://zhidao.baixing.com/question/11524059.html

http://zhidao.baixing.com/question/11524063.html

http://zhidao.baixing.com/question/11524065.html

http://zhidao.baixing.com/question/11524067.html

http://zhidao.baixing.com/question/11524069.html

http://zhidao.baixing.com/question/11524071.html

http://zhidao.baixing.com/question/11524077.html

http://zhidao.baixing.com/question/11524082.html

http://zhidao.baixing.com/question/11524084.html

http://zhidao.baixing.com/question/11524087.html

http://zhidao.baixing.com/question/11524088.html

http://zhidao.baixing.com/question/11524089.html

http://zhidao.baixing.com/question/11524092.html

http://zhidao.baixing.com/question/11524094.html

http://zhidao.baixing.com/question/11524097.html

http://zhidao.baixing.com/question/11524098.html

http://zhidao.baixing.com/question/11524099.html

http://zhidao.baixing.com/question/11524100.html

http://zhidao.baixing.com/question/11524104.html

http://zhidao.baixing.com/question/11524106.html

http://zhidao.baixing.com/question/11524113.html

http://zhidao.baixing.com/question/11524114.html

http://zhidao.baixing.com/question/11524115.html

http://zhidao.baixing.com/question/11524118.html

http://zhidao.baixing.com/question/11524121.html

http://zhidao.baixing.com/question/11524131.html

http://zhidao.baixing.com/question/11524133.html

http://zhidao.baixing.com/question/11524136.html

http://zhidao.baixing.com/question/11524137.html

http://zhidao.baixing.com/question/11524139.html

http://zhidao.baixing.com/question/11524141.html

http://zhidao.baixing.com/question/11524142.html

http://zhidao.baixing.com/question/11524144.html

http://zhidao.baixing.com/question/11524149.html

http://zhidao.baixing.com/question/11524151.html

http://zhidao.baixing.com/question/11524156.html

http://zhidao.baixing.com/question/11524159.html

http://zhidao.baixing.com/question/11524160.html

http://zhidao.baixing.com/question/11524162.html

http://zhidao.baixing.com/question/11524163.html

http://zhidao.baixing.com/question/11524165.html

http://zhidao.baixing.com/question/11524169.html

http://zhidao.baixing.com/question/11524172.html

http://zhidao.baixing.com/question/11524177.html

http://zhidao.baixing.com/question/11524179.html

http://zhidao.baixing.com/question/11524183.html

http://zhidao.baixing.com/question/11524186.html

http://zhidao.baixing.com/question/11524188.html

http://zhidao.baixing.com/question/11524189.html

http://zhidao.baixing.com/question/11524193.html

http://zhidao.baixing.com/question/11524195.html

http://zhidao.baixing.com/question/11524196.html

http://zhidao.baixing.com/question/11524197.html

http://zhidao.baixing.com/question/11524199.html

http://zhidao.baixing.com/question/11524200.html

http://zhidao.baixing.com/question/11524204.html

http://zhidao.baixing.com/question/11524206.html

http://zhidao.baixing.com/question/11524208.html

http://zhidao.baixing.com/question/11524210.html

http://zhidao.baixing.com/question/11524211.html

http://zhidao.baixing.com/question/11524213.html

http://zhidao.baixing.com/question/11524216.html

http://zhidao.baixing.com/question/11524217.html

http://zhidao.baixing.com/question/11524218.html

http://zhidao.baixing.com/question/11524220.html

http://zhidao.baixing.com/question/11524221.html

http://zhidao.baixing.com/question/11524222.html

http://zhidao.baixing.com/question/11524224.html

http://zhidao.baixing.com/question/11524227.html

http://zhidao.baixing.com/question/11524228.html

http://zhidao.baixing.com/question/11524229.html

http://zhidao.baixing.com/question/11524230.html

http://zhidao.baixing.com/question/11524231.html

http://zhidao.baixing.com/question/11524233.html

http://zhidao.baixing.com/question/11524235.html

http://zhidao.baixing.com/question/11524238.html

http://zhidao.baixing.com/question/11524239.html

http://zhidao.baixing.com/question/11524242.html

http://zhidao.baixing.com/question/11524243.html

http://zhidao.baixing.com/question/11524245.html

http://zhidao.baixing.com/question/11524246.html

http://zhidao.baixing.com/question/11524247.html

http://zhidao.baixing.com/question/11524248.html

http://zhidao.baixing.com/question/11524251.html

http://zhidao.baixing.com/question/11524255.html

http://zhidao.baixing.com/question/11524259.html

http://zhidao.baixing.com/question/11524260.html

http://zhidao.baixing.com/question/11524262.html

http://zhidao.baixing.com/question/11524264.html

http://zhidao.baixing.com/question/11524266.html

http://zhidao.baixing.com/question/11524267.html

http://zhidao.baixing.com/question/11524268.html

http://zhidao.baixing.com/question/11524269.html

http://zhidao.baixing.com/question/11524271.html

http://zhidao.baixing.com/question/11524272.html

http://zhidao.baixing.com/question/11524273.html

http://zhidao.baixing.com/question/11524274.html

http://zhidao.baixing.com/question/11524277.html

http://zhidao.baixing.com/question/11524278.html

http://zhidao.baixing.com/question/11524279.html

http://zhidao.baixing.com/question/11524280.html

http://zhidao.baixing.com/question/11524281.html

http://zhidao.baixing.com/question/11524282.html

http://zhidao.baixing.com/question/11524283.html

http://zhidao.baixing.com/question/11524285.html

http://zhidao.baixing.com/question/11524288.html

http://zhidao.baixing.com/question/11524289.html

http://zhidao.baixing.com/question/11524290.html

http://zhidao.baixing.com/question/11524291.html

http://zhidao.baixing.com/question/11524294.html

http://zhidao.baixing.com/question/11524295.html

http://zhidao.baixing.com/question/11524297.html

http://zhidao.baixing.com/question/11524298.html

http://zhidao.baixing.com/question/11524299.html

http://zhidao.baixing.com/question/11524301.html

http://zhidao.baixing.com/question/11524302.html

http://zhidao.baixing.com/question/11524304.html

http://zhidao.baixing.com/question/11524305.html

http://zhidao.baixing.com/question/11524308.html

http://zhidao.baixing.com/question/11524309.html

http://zhidao.baixing.com/question/11524312.html

http://zhidao.baixing.com/question/11524313.html

http://zhidao.baixing.com/question/11524314.html

http://zhidao.baixing.com/question/11524315.html

http://zhidao.baixing.com/question/11524316.html

http://zhidao.baixing.com/question/11524317.html

http://zhidao.baixing.com/question/11524319.html

http://zhidao.baixing.com/question/11524320.html

http://zhidao.baixing.com/question/11524321.html

http://zhidao.baixing.com/question/11524322.html

http://zhidao.baixing.com/question/11524323.html

http://zhidao.baixing.com/question/11524324.html

http://zhidao.baixing.com/question/11524325.html

http://zhidao.baixing.com/question/11524328.html

http://zhidao.baixing.com/question/11524329.html

http://zhidao.baixing.com/question/11524330.html

http://zhidao.baixing.com/question/11524332.html

http://zhidao.baixing.com/question/11524334.html

http://zhidao.baixing.com/question/11524336.html

http://zhidao.baixing.com/question/11524338.html

http://zhidao.baixing.com/question/11524339.html

http://zhidao.baixing.com/question/11524341.html

http://zhidao.baixing.com/question/11524342.html

http://zhidao.baixing.com/question/11524343.html

http://zhidao.baixing.com/question/11524345.html

http://zhidao.baixing.com/question/11524347.html

http://zhidao.baixing.com/question/11524349.html

http://zhidao.baixing.com/question/11524350.html

http://zhidao.baixing.com/question/11524351.html

http://zhidao.baixing.com/question/11524352.html

http://zhidao.baixing.com/question/11524353.html

http://zhidao.baixing.com/question/11524354.html

http://zhidao.baixing.com/question/11524356.html

http://zhidao.baixing.com/question/11524357.html

http://zhidao.baixing.com/question/11524358.html

http://zhidao.baixing.com/question/11524359.html

http://zhidao.baixing.com/question/11524361.html

http://zhidao.baixing.com/question/11524362.html

http://zhidao.baixing.com/question/11524364.html

http://zhidao.baixing.com/question/11524366.html

http://zhidao.baixing.com/question/11524370.html

http://zhidao.baixing.com/question/11524373.html

http://zhidao.baixing.com/question/11524374.html

http://zhidao.baixing.com/question/11524375.html

http://zhidao.baixing.com/question/11524376.html

http://zhidao.baixing.com/question/11524377.html

http://zhidao.baixing.com/question/11524378.html

http://zhidao.baixing.com/question/11524380.html

http://zhidao.baixing.com/question/11524381.html

http://zhidao.baixing.com/question/11524382.html

http://zhidao.baixing.com/question/11524385.html

http://zhidao.baixing.com/question/11524387.html

http://zhidao.baixing.com/question/11524388.html

http://zhidao.baixing.com/question/11524389.html

http://zhidao.baixing.com/question/11524390.html

http://zhidao.baixing.com/question/11524391.html

http://zhidao.baixing.com/question/11524392.html

http://zhidao.baixing.com/question/11524393.html

http://zhidao.baixing.com/question/11524394.html

http://zhidao.baixing.com/question/11524395.html

http://zhidao.baixing.com/question/11524397.html

http://zhidao.baixing.com/question/11524398.html

http://zhidao.baixing.com/question/11524400.html

http://zhidao.baixing.com/question/11524401.html

http://zhidao.baixing.com/question/11524403.html

http://zhidao.baixing.com/question/11524404.html

http://zhidao.baixing.com/question/11524406.html

http://zhidao.baixing.com/question/11524407.html

http://zhidao.baixing.com/question/11524408.html

http://zhidao.baixing.com/question/11524409.html

http://zhidao.baixing.com/question/11524410.html

http://zhidao.baixing.com/question/11524411.html



鎴橀瓊灝忕瓚 2021-12-27 19:04 鍙戣〃璇勮
]]>
Go璇█涓庢瀯閫犲嚱鏁?/title><link>http://m.shnenglu.com/sunicdavy/archive/2016/12/01/214457.html</link><dc:creator>鎴橀瓊灝忕瓚</dc:creator><author>鎴橀瓊灝忕瓚</author><pubDate>Thu, 01 Dec 2016 02:45:00 GMT</pubDate><guid>http://m.shnenglu.com/sunicdavy/archive/2016/12/01/214457.html</guid><wfw:comment>http://m.shnenglu.com/sunicdavy/comments/214457.html</wfw:comment><comments>http://m.shnenglu.com/sunicdavy/archive/2016/12/01/214457.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.shnenglu.com/sunicdavy/comments/commentRss/214457.html</wfw:commentRss><trackback:ping>http://m.shnenglu.com/sunicdavy/services/trackbacks/214457.html</trackback:ping><description><![CDATA[<p style="margin-right: 0px; margin-bottom: 10px; margin-left: 0px; font-size: 15px; font-family: Helvetica, "Hiragino Sans GB", 寰蔣闆呴粦, "Microsoft YaHei UI", SimSun, SimHei, arial, sans-serif; line-height: 24px; widows: 1; margin-top: 0px !important;">Golang涓病鏈夎璁℃瀯閫犲嚱鏁? 鍙栬屼唬涔嬬殑, 璁捐Golang鐨勫ぇ甯堝笇鏈涗綘鐢ㄦ櫘閫氬嚱鏁板幓瀹炵幇鏋勯犵殑浠誨姟. <br />涓鐩村彧鏄寰楄繖鍙槸浣撶幇Golang榪欓棬鏂拌璦鐨勭簿綆璁捐涔嬮亾, 鐩村埌鑷繁瀹炵幇緙栬瘧鍣ㄥ悗鎵嶅彂鐜版瀯閫犲嚱鏁扮殑璁捐鏈韓鏄煎緱鍟嗘Ψ鐨?/p><p style="margin: 10px 0px; font-size: 15px; font-family: Helvetica, "Hiragino Sans GB", 寰蔣闆呴粦, "Microsoft YaHei UI", SimSun, SimHei, arial, sans-serif; line-height: 24px; widows: 1;">鎴戜滑鍏堢湅涓嬫瀯閫犲嚱鏁扮殑瑙勫垯</p><h1>鏋勯犲嚱鏁拌皟鐢ㄨ鍒?/h1><p style="margin: 10px 0px; font-size: 15px; font-family: Helvetica, "Hiragino Sans GB", 寰蔣闆呴粦, "Microsoft YaHei UI", SimSun, SimHei, arial, sans-serif; line-height: 24px; widows: 1;">鏋勯犲弬鏁伴噺: 0琛ㄧず娌℃湁鏋勯犲嚱鏁? 1琛ㄧず鏈夋瀯閫犲嚱鏁?涓弬鏁?/p><table style="margin: 10px 0px; border-collapse: collapse; border-style: solid; border-color: #bbbbbb; padding: 0px; color: #000000; font-family: Helvetica, "Hiragino Sans GB", 寰蔣闆呴粦, "Microsoft YaHei UI", SimSun, SimHei, arial, sans-serif; font-size: 15px; line-height: 24px; widows: 1;"><thead><tr style="border-top-width: 1px; border-top-style: solid; border-top-color: #cccccc; margin: 0px; padding: 0px; background-color: white;"><th style="padding: 6px 13px; border-collapse: collapse; border: 1px solid #cccccc; height: 28px; word-break: break-all; box-sizing: border-box; outline: none; margin: 0px; font-size: 14px;">鏈被鏋勯?/th><th style="padding: 6px 13px; border-collapse: collapse; border: 1px solid #cccccc; height: 28px; word-break: break-all; box-sizing: border-box; outline: none; margin: 0px; font-size: 14px;">鐖剁被鏋勯?/th><th style="padding: 6px 13px; border-collapse: collapse; border: 1px solid #cccccc; height: 28px; word-break: break-all; box-sizing: border-box; outline: none; margin: 0px; font-size: 14px;">澶勭悊鏂規硶</th></tr></thead><tbody><tr style="border-top-width: 1px; border-top-style: solid; border-top-color: #cccccc; margin: 0px; padding: 0px; background-color: white;"><td style="padding: 6px 13px; border-collapse: collapse; border-style: solid; border-color: #cccccc; height: 28px; word-break: break-all; box-sizing: border-box; outline: none; margin: 0px; font-size: 14px;">0</td><td style="padding: 6px 13px; border-collapse: collapse; border-style: solid; border-color: #cccccc; height: 28px; word-break: break-all; box-sizing: border-box; outline: none; margin: 0px; font-size: 14px;">0</td><td style="padding: 6px 13px; border-collapse: collapse; border-style: solid; border-color: #cccccc; height: 28px; word-break: break-all; box-sizing: border-box; outline: none; margin: 0px; font-size: 14px;">涓嶅鐞?/td></tr><tr style="border-top-width: 1px; border-top-style: solid; border-top-color: #cccccc; margin: 0px; padding: 0px; background-color: #f8f8f8;"><td style="padding: 6px 13px; border-collapse: collapse; border-style: solid; border-color: #cccccc; height: 28px; word-break: break-all; box-sizing: border-box; outline: none; margin: 0px; font-size: 14px;">1</td><td style="padding: 6px 13px; border-collapse: collapse; border-style: solid; border-color: #cccccc; height: 28px; word-break: break-all; box-sizing: border-box; outline: none; margin: 0px; font-size: 14px;">0</td><td style="padding: 6px 13px; border-collapse: collapse; border-style: solid; border-color: #cccccc; height: 28px; word-break: break-all; box-sizing: border-box; outline: none; margin: 0px; font-size: 14px;">璋冩湰綾籧tor</td></tr><tr style="border-top-width: 1px; border-top-style: solid; border-top-color: #cccccc; margin: 0px; padding: 0px; background-color: white;"><td style="padding: 6px 13px; border-collapse: collapse; border-style: solid; border-color: #cccccc; height: 28px; word-break: break-all; box-sizing: border-box; outline: none; margin: 0px; font-size: 14px;">0</td><td style="padding: 6px 13px; border-collapse: collapse; border-style: solid; border-color: #cccccc; height: 28px; word-break: break-all; box-sizing: border-box; outline: none; margin: 0px; font-size: 14px;">1</td><td style="padding: 6px 13px; border-collapse: collapse; border-style: solid; border-color: #cccccc; height: 28px; word-break: break-all; box-sizing: border-box; outline: none; margin: 0px; font-size: 14px;">璋冪埗綾籧tor</td></tr><tr style="border-top-width: 1px; border-top-style: solid; border-top-color: #cccccc; margin: 0px; padding: 0px; background-color: #f8f8f8;"><td style="padding: 6px 13px; border-collapse: collapse; border-style: solid; border-color: #cccccc; height: 28px; word-break: break-all; box-sizing: border-box; outline: none; margin: 0px; font-size: 14px;">1</td><td style="padding: 6px 13px; border-collapse: collapse; border-style: solid; border-color: #cccccc; height: 28px; word-break: break-all; box-sizing: border-box; outline: none; margin: 0px; font-size: 14px;">1</td><td style="padding: 6px 13px; border-collapse: collapse; border-style: solid; border-color: #cccccc; height: 28px; word-break: break-all; box-sizing: border-box; outline: none; margin: 0px; font-size: 14px;">璋冩湰綾籧tor, 鏈被ctor璋冪埗綾籧tor</td></tr><tr style="border-top-width: 1px; border-top-style: solid; border-top-color: #cccccc; margin: 0px; padding: 0px; background-color: white;"><td style="padding: 6px 13px; border-collapse: collapse; border-style: solid; border-color: #cccccc; height: 28px; word-break: break-all; box-sizing: border-box; outline: none; margin: 0px; font-size: 14px;">2</td><td style="padding: 6px 13px; border-collapse: collapse; border-style: solid; border-color: #cccccc; height: 28px; word-break: break-all; box-sizing: border-box; outline: none; margin: 0px; font-size: 14px;">1</td><td style="padding: 6px 13px; border-collapse: collapse; border-style: solid; border-color: #cccccc; height: 28px; word-break: break-all; box-sizing: border-box; outline: none; margin: 0px; font-size: 14px;">璋冩湰綾籧tor, 鏈被ctor璋冪埗綾籧tor</td></tr><tr style="border-top-width: 1px; border-top-style: solid; border-top-color: #cccccc; margin: 0px; padding: 0px; background-color: #f8f8f8;"><td style="padding: 6px 13px; border-collapse: collapse; border-style: solid; border-color: #cccccc; height: 28px; word-break: break-all; box-sizing: border-box; outline: none; margin: 0px; font-size: 14px;">1</td><td style="padding: 6px 13px; border-collapse: collapse; border-style: solid; border-color: #cccccc; height: 28px; word-break: break-all; box-sizing: border-box; outline: none; margin: 0px; font-size: 14px;">2</td><td style="padding: 6px 13px; border-collapse: collapse; border-style: solid; border-color: #cccccc; height: 28px; word-break: break-all; box-sizing: border-box; outline: none; margin: 0px; font-size: 14px;">鎶ラ敊, 鎵嬪姩璋冪埗綾籧tor</td></tr><tr style="border-top-width: 1px; border-top-style: solid; border-top-color: #cccccc; margin: 0px; padding: 0px; background-color: white;"><td style="padding: 6px 13px; border-collapse: collapse; border-style: solid; border-color: #cccccc; height: 28px; word-break: break-all; box-sizing: border-box; outline: none; margin: 0px; font-size: 14px;">2</td><td style="padding: 6px 13px; border-collapse: collapse; border-style: solid; border-color: #cccccc; height: 28px; word-break: break-all; box-sizing: border-box; outline: none; margin: 0px; font-size: 14px;">2</td><td style="padding: 6px 13px; border-collapse: collapse; border-style: solid; border-color: #cccccc; height: 28px; word-break: break-all; box-sizing: border-box; outline: none; margin: 0px; font-size: 14px;">鎶ラ敊, 鎵嬪姩璋冪埗綾籧tor</td></tr></tbody></table><h1>鏅氬嚱鏁伴噸杞借鍒?/h1><p style="margin: 10px 0px; font-size: 15px; font-family: Helvetica, "Hiragino Sans GB", 寰蔣闆呴粦, "Microsoft YaHei UI", SimSun, SimHei, arial, sans-serif; line-height: 24px; widows: 1;">瀹為檯鍙敤鑰冭檻鏈鍏稿瀷鐨勪竴縐嶈涓? 瀹炰緥鍖栧瓙綾? 杞負鐖剁被璋冪敤鏂規硶, 榪欎釜鏃跺?/p><p style="margin: 10px 0px; font-size: 15px; font-family: Helvetica, "Hiragino Sans GB", 寰蔣闆呴粦, "Microsoft YaHei UI", SimSun, SimHei, arial, sans-serif; line-height: 24px; widows: 1;">濡傛灉鏂規硶鏄痮verride, 璋冪敤鐨勬槸瀛愮被</p><p style="margin: 10px 0px; font-size: 15px; font-family: Helvetica, "Hiragino Sans GB", 寰蔣闆呴粦, "Microsoft YaHei UI", SimSun, SimHei, arial, sans-serif; line-height: 24px; widows: 1;">濡傛灉鏂規硶鏄痸irutal鎴栬呬笉鎸囨槑, 璋冪敤鐨勬槸鐖剁被</p><p style="margin: 10px 0px; font-size: 15px; font-family: Helvetica, "Hiragino Sans GB", 寰蔣闆呴粦, "Microsoft YaHei UI", SimSun, SimHei, arial, sans-serif; line-height: 24px; widows: 1;">鏁翠釜閲嶈澆榪囩▼, 瀛愮被緇濆涓嶄細闅愬紡璋冪敤鐖剁被鐨勮涓?/p><h1>闇瑕佹瀯閫犲嚱鏁頒箞?</h1><p style="margin: 10px 0px; font-size: 15px; font-family: Helvetica, "Hiragino Sans GB", 寰蔣闆呴粦, "Microsoft YaHei UI", SimSun, SimHei, arial, sans-serif; line-height: 24px; widows: 1;">鏋勯犲嚱鏁扮殑浼樼偣</p><ul style="margin: 10px 0px; padding-left: 32px; font-family: Helvetica, "Hiragino Sans GB", 寰蔣闆呴粦, "Microsoft YaHei UI", SimSun, SimHei, arial, sans-serif; font-size: 15px; line-height: 24px; widows: 1;"><li style="margin: 0px 0px 5px;">鏈韓灞炰簬涓縐嶇壒孌婄殑鎴愬憳鍑芥暟</li><li style="margin: 5px 0px;">緙栬瘧鍣ㄥ府浣犺嚜鍔ㄤ紶瀵艱皟鐢ㄧ埗綰?/li></ul><p style="margin: 10px 0px; font-size: 15px; font-family: Helvetica, "Hiragino Sans GB", 寰蔣闆呴粦, "Microsoft YaHei UI", SimSun, SimHei, arial, sans-serif; line-height: 24px; widows: 1;">鏋勯犲嚱鏁扮殑緙虹偣</p><ul style="margin: 10px 0px; padding-left: 32px; font-family: Helvetica, "Hiragino Sans GB", 寰蔣闆呴粦, "Microsoft YaHei UI", SimSun, SimHei, arial, sans-serif; font-size: 15px; line-height: 24px; widows: 1;"><li style="margin: 0px 0px 5px;">闅愬紡鐨勮皟鐢ㄨ鍒?/li><li style="margin: 5px 0px;">铏界劧灞炰簬鎴愬憳鍑芥暟, 浣嗘槸涓庡叾浠栨垚鍛樺嚱鏁拌皟鐢ㄨ鍒欏畬鍏ㄤ笉鍚? 闇瑕佺壒孌婅蹇?/li><li style="margin: 5px 0px;">甯﹀弬鏁扮殑鏋勯犲嚱鏁? 鍦ㄧ埗綾誨弬鏁板浜庡瓙綾繪椂, 闇瑕佸紩鐢ㄥ鏉傝娉曟潵瀹炵幇鐖剁駭鏋勯犺皟鐢?/li></ul><p style="margin: 10px 0px; font-size: 15px; font-family: Helvetica, "Hiragino Sans GB", 寰蔣闆呴粦, "Microsoft YaHei UI", SimSun, SimHei, arial, sans-serif; line-height: 24px; widows: 1;">鍏跺疄鎴戜滑瀵瑰垵濮嬪寲鍑芥暟鐨勯渶姹傚彧鏈?鏉? 鑷畾涔?/p><p style="margin-top: 10px; margin-right: 0px; margin-left: 0px; font-size: 15px; font-family: Helvetica, "Hiragino Sans GB", 寰蔣闆呴粦, "Microsoft YaHei UI", SimSun, SimHei, arial, sans-serif; line-height: 24px; widows: 1; margin-bottom: 0px !important;">鎵浠? 鍙互鐞嗚ВGolang涓嶅姞鍏ユ瀯閫犲嚱鏁扮殑璁捐鏄紜殑 <br />鍗? 綆鍗? 娓呮櫚, 鏈夎寰?/p><img src ="http://m.shnenglu.com/sunicdavy/aggbug/214457.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.shnenglu.com/sunicdavy/" target="_blank">鎴橀瓊灝忕瓚</a> 2016-12-01 10:45 <a href="http://m.shnenglu.com/sunicdavy/archive/2016/12/01/214457.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>ulua緇撳悎protoc-gen-lua鐨勫嚑涓潙http://m.shnenglu.com/sunicdavy/archive/2016/05/31/213612.html鎴橀瓊灝忕瓚鎴橀瓊灝忕瓚Tue, 31 May 2016 03:26:00 GMThttp://m.shnenglu.com/sunicdavy/archive/2016/05/31/213612.htmlhttp://m.shnenglu.com/sunicdavy/comments/213612.htmlhttp://m.shnenglu.com/sunicdavy/archive/2016/05/31/213612.html#Feedback0http://m.shnenglu.com/sunicdavy/comments/commentRss/213612.htmlhttp://m.shnenglu.com/sunicdavy/services/trackbacks/213612.html鏈榪戞暣鍚坲lua鍒伴」鐩噷榪涜鐑洿鏂? protoc-gen-lua榪欏彜鑰佺殑涓滆タ閲嶆柊璁╂垜緇х畫鍙戝崥瀹? 鍥犱負鍧?/p>

鐢熸垚濂界殑鍗忚鎶ラ敊鎵句笉鍒皃rotobuf

鍦ㄦ瘡涓猵rotoc-gen-lua鐢熸垚鐨刲ua鏂囦歡閲? 閮芥湁涓琛?/p>

local protobuf = require "protobuf"

鏈韓鎸夌収瀹樻柟鍑虹殑娌¢棶棰? 浣嗘槸鍦╱lua鐨勭洰褰曢噷, 鎬繪槸鎶rotobuf鎵句笉鍒扮殑閿欒. 鍓嶅悗瀵規瘮浜嗕笅鎴戠敓鎴愮殑lua鍜寀lua瀹樻柟鐢熸垚鐨勪唬鐮侀噷

鍙戠幇灞呯劧浠栦慨鏀逛簡鍦板潃鏀逛負浜?/p>

local protobuf = require "protobuf/protobuf"

濂藉惂, 鍙湁淇敼鐢熸垚鍣ㄤ唬鐮乸rotoc-gen-lua\plugin\protoc-gen-lua涓412琛屾敼涓?/p>

lua('local protobuf = require "protobuf/protobuf"\n')
 

鐢熸垚娑堟伅鏃犳硶鎵懼埌Descriptor鍙嶅皠鏌ヤ俊鎭?/h2>
鍦↙uaFramework\ToLua\Lua\protobuf\protobuf.lua鐨?39琛屾坊鍔?/pre>
message_meta._member.Descriptor = descriptor
鍦ㄦ秷鎭噷灝卞彲浠ラ氳繃msg.Descriptor鑾峰緱姝ゆ秷鎭殑鍙嶅皠淇℃伅

鐢變簬proto鏂囦歡瀹氫箟鐨勫唴瀹硅繃澶氬鑷寸殑lua local瓚呰繃闄愬埗鐨勮鍛?/h2>

image

榪欎釜閿欒鐪熸槸璁╂垜鍝瑧涓嶅緱, protoc-gen-lua鐨勫彲鐢ㄦу啀涓嬈¤鎬鐤?/p>

鎴戜滑鐨勫崗璁ソ姝瑰垎鎴愪簡鎺ヨ繎100涓? 姣忎釜閲岄潰娑堟伅鍜屾暟鎹槸娣峰悎鐨? 鏇村埆璇存湁浜涚闉嬪枩嬈㈡妸涓涓」鐩殑鍗忚鍏ㄥ啓鍦ㄤ竴涓枃浠墮噷, 閭g敓鎴愮殑local鏁伴噺綆鐩存槸閰哥埥

 

 

 

鍚庤

鎼滅儲protoc-gen-lua鏃? 鏃犳剰闂村張鎼滃埌3騫村墠鑷繁鐨勫崥鏂?a title="http://m.shnenglu.com/sunicdavy/archive/2013/04/24/199693.html" href="http://m.shnenglu.com/sunicdavy/archive/2013/04/24/199693.html">http://m.shnenglu.com/sunicdavy/archive/2013/04/24/199693.html

璁板緱閭d釜鏃跺欏噯澶囧湪鏈嶅姟鍣ㄤ嬌鐢╨ua, 榪樺ソ娌¤繖涔堝共, 杞簡go, 鍚﹀垯鍚庢灉涓嶅牚璁炬兂

lua涓婁嬌鐢╬b鍏跺疄騫朵笉瀹規槗, 浜戦鐨刾bc鍐欑殑涓嶉敊, 浣嗘曟湁鍧? sproto鐩存帴涓嶅吋瀹圭幇鏈夐」鐩? 椋庨櫓澶т簬鏄撶敤鎬ф墍浠ユ灉鏂純鐢?/p>

鍥犳, 鐪嬫潵鏈夊繀瑕佽嚜宸卞啓涓涓敮鎸佽壇濂界殑lua pb搴?/p>

]]>Golang, Lua, C#闂寘鍙橀噺鎹曡幏宸紓http://m.shnenglu.com/sunicdavy/archive/2015/09/23/211895.html鎴橀瓊灝忕瓚鎴橀瓊灝忕瓚Wed, 23 Sep 2015 10:31:00 GMThttp://m.shnenglu.com/sunicdavy/archive/2015/09/23/211895.htmlhttp://m.shnenglu.com/sunicdavy/comments/211895.htmlhttp://m.shnenglu.com/sunicdavy/archive/2015/09/23/211895.html#Feedback2http://m.shnenglu.com/sunicdavy/comments/commentRss/211895.htmlhttp://m.shnenglu.com/sunicdavy/services/trackbacks/211895.html鐪婥#渚嬪瓙

            Action[] a = new Action[3];
 
            for (int i = 0; i < 3; i++)
            {
                a[i] = ( ) => { Console.WriteLine(i); };
            }
 
            for (int i = 0; i < 3; i++){
                a[i]();
            }

C#鎵撳嵃緇撴灉涓? 3 3

 

Golang鐨勪緥瀛?/p>

    a := make([]func(), 3 )
    
    for i := 0; i < 3; i++ {
        
        a[i]= func( ){
            
            fmt.Println(i)
            
        }    
    
    }
    
    for _, s := range a {
        s()
    }

Golang鎵撳嵃緇撴灉涓? 3 3

 

鏈鍚庢槸Lua鐨勪緥瀛?/p>

a = {}
 
for i = 1, 3 do
 
    table.insert( a, function()
        print(i)
    end
    )
 
end
 
 
for _, v in ipairs(a) do
    v()
end

Lua鎵撳嵃緇撴灉涓? 2 3

 

宸紓鍦ㄤ簬, C#鍜孏olang灝嗗彉閲忔崟鑾峰埌闂寘鍐呮椂, 鍧囦嬌鐢ㄥ紩鐢ㄦ柟寮? 鍗沖綋鏈鍚庡紑濮嬭皟鐢ㄤ嬌鐢ㄥ彉閲忔椂, 鐢變簬鍙橀噺宸茬粡緇撴潫寰幆, 鎵浠ユ槸鏈緇堝?/p>

浣嗘槸Lua鎹曡幏鏂瑰紡鏄兼崟鑾? 鍥犳姣旇緝瀹規槗鐞嗚В, 鏄灝戝氨鏄灝?/p>

]]>
娣卞叆鎸栨帢protobuf: 閫氳繃protoc鑾峰彇proto鏂囦歡淇℃伅http://m.shnenglu.com/sunicdavy/archive/2015/03/01/209894.html鎴橀瓊灝忕瓚鎴橀瓊灝忕瓚Sun, 01 Mar 2015 05:49:00 GMThttp://m.shnenglu.com/sunicdavy/archive/2015/03/01/209894.htmlhttp://m.shnenglu.com/sunicdavy/comments/209894.htmlhttp://m.shnenglu.com/sunicdavy/archive/2015/03/01/209894.html#Feedback0http://m.shnenglu.com/sunicdavy/comments/commentRss/209894.htmlhttp://m.shnenglu.com/sunicdavy/services/trackbacks/209894.html鍑嗗:

鍦?a title="http://code.google.com/p/protobuf/" >http://code.google.com/p/protobuf/涓嬭澆protobuf-2.5鐗堟湰

棰勫鐭ヨ瘑: 宸茬粡浣跨敤榪噋rotobuf, 鐔熺粌搴旂敤protobuf搴忓垪鍖栧湪鍚勮璦闂翠氦浜掍俊鎭?/p>

鐩爣: 鑾峰彇proto鍐呭鑰屾棤闇鎵嬪姩瑙f瀽proto鏂囦歡

涓簆roto鏂囦歡娣誨姞鏇村鐨刴eta淇℃伅, 騫跺湪榪愯鏈熻幏鍙?

 

protoc緙栬瘧鍣ㄥ噯澶?/strong>

閫氳繃protobuf-2.5鐨勬簮鐮佹垨鑰呬粠瀹樼綉涓嬭澆, 鍙互鑾峰緱protoc鐨刾rotobuf緙栬瘧鍣? 榪欎釜緙栬瘧鍣ㄧ敱C++緙栧啓, 瀹樻柟鏀寔瀹屾暣鐨刾rotobuf鐗規? 緙栬瘧鍣ㄩ粯璁ゆ敮鎸丆++, python鍜宩ava 涓夌璇█鐨勪唬鐮佺敓鎴? 濡傞渶鐢熸垚鏇村鐨勮璦, 鍙互閫氳繃瀹樼綉鐨勭涓夋柟欏甸潰鑾峰彇.

 

protoc鎻掍歡鍘熺悊

浣嗘垜浠湪鏃ュ父浣跨敤涓? 鍙兘闇瑕佹彁鍙杙roto淇℃伅, 渚嬪: 鎵鏈夌殑鏋氫婦,娑堟伅絳変俊鎭? 瀛楁鍚嶇О鍜屽鍑哄彿. 鑷繁緙栧啓璇嶆硶瑙f瀽鍣ㄦ潵鍋氭槸璐瑰姏涓嶈濂界殑. 瀹樻柟鎺ㄨ崘鐨勬柟娉曟槸浣跨敤protoc澶栨寕鎻掍歡鏉ュ疄鐜?

protoc鐨勬彃浠惰璁℃瘮杈冪嫭鐗? 涓嶄嬌鐢ㄥ姩鎬侀摼鎺ュ簱鎴栬卝ava鐨刯ar鍖呭鍏ユ柟寮? 鑰屾槸鐩存帴浣跨敤浜嗗懡浠よ鏉ヤ氦鎹㈡暟鎹?鏌ョ湅protobuf婧愮爜鎴戜滑鍙互鍙戠幇榪欐牱涓涓枃浠?

protobuf-2.5.0\src\google\protobuf\descriptor.proto

榪欎釜鏂囦歡鎻忚堪浜嗕竴涓猵roto鏂囦歡鐨勬牸寮? 娑堟伅緇勬垚鍙婃灇涓劇瓑瀹屾暣淇℃伅. 榪欐槸涓縐嶈嚜鎴戞弿榪扮殑鏂規硶.

鍦ㄦ壘鍒拌繖鏍蜂竴涓枃浠?/p>

protobuf-2.5.0\src\google\protobuf\compiler\plugin.proto

榪欐牱涓涓枃浠舵弿榪? 鎻掍歡濡備綍涓巔rotoc榪涜浜や簰鐨勫崗璁?/p>

protoc緙栬瘧鍣ㄥ湪緇欏畾鎸囧畾proto鏂囦歡鍙婃悳绱㈣礬寰勫悗, 灝嗗悇縐嶄俊鎭~鍏呬負descriptor.proto鎻忚堪鐨勭粨鏋勫悗閫氳繃CodeGeneratorRequest娑堟伅緋誨垪鍖栦負浜岃繘鍒舵祦鍚庤緭鍑哄埌鍛戒護琛? 鎻掍歡鍙敤鎹曡幏protoc鍛戒護琛岃緭鍑虹殑浜岃繘鍒舵祦, 搴忓垪鍖栧寲鍥濩odeGeneratorRequest鍗沖彲鑾峰緱瑙f瀽鍚庣殑proto鏂囦歡鍐呭

榪欓噷闇瑕佹敞鎰忕殑鏄? 鎻掍歡鍙墽琛屾枃浠跺緢鏈夎絀? 蹇呴』涓簆rotoc-gen-$NAME,  鑰屼笖杈撳嚭鏂囦歡鍚嶅弬鏁板繀欏諱負--${NAME}_out

鐪嬩竴涓牀瀛?

protoc.exe foo.proto --plugin=protoc-gen-go=..\tools\protoc-gen-go.exe --go_out foo.go --proto_path "."

榪欎釜鏍楀瓙閲? $NAME=go

protoc灝唂oo.proto鏂囦歡(鎼滅儲璺緞涓哄綋鍓嶈礬寰?鐨勫唴瀹歸氳繃鍛戒護琛岃緭鍑虹粰浣嶄簬..\tools\鐨勬彃浠秔rotoc-gen-go.exe,  杈撳嚭鏂囦歡鍚嶅瓧涓?foo.go

descriptor.proto淇℃伅鎸栨帢

鎴戜滑娉ㄦ剰鍒板湪descriptor.proto鏂囦歡涓寘鍚湁榪欐牱鐨勪竴涓猰essage: SourceCodeInfo, 榪欎釜娑堟伅浣撻噷鏈夊涓嬪瓧孌?/p>

optional string leading_comments = 3;
    optional string trailing_comments = 4;

榪欎袱涓瓧孌靛浜庢垜浠幏鍙杙roto鏂囦歡鐨刴eta淇℃伅灝や負閲嶈, 鎵璋撶殑meta淇℃伅, 鐞嗚В鐞嗚В涓篊#璇█涓殑attribute

榪欎釜attribute鍔熻兘鍙互涓轟竴涓瓧孌? 涓涓秷鎭墿鍏呬竴浜涙弿榪? 姣斿: 褰撲竴涓瓧孌甸氳繃鍙嶅皠鏄劇ず鍦╣ui涓婃椂, gui闇瑕佽幏鍙栬繖涓瓧孌電殑涓枃鎻忚堪

閭d箞鍙渶瑕佸涓嬬紪鍐?

optional int32 somevalue = 1 //@ desc=鈥濅腑鏂囨弿榪扳?

浣嶄簬瀛楁灝鵑儴鐨勬弿榪? 浼氳濉厖鍒癝ourceCodeInfo鐨?trailing_comments涓? 鑰屼綅浜庡瓧孌典笂鏂圭殑瀛楁, 浼氳濉厖鍒發eading_comments涓?

 

SourceCodeInfo 騫舵病鏈夌洿鎺ユ寕杞藉湪message鎴栬呭瓧孌電殑闄勮繎, 鑰屾槸閫氳繃鍏朵笅鐨刾ath瀛楁鏉ユ弿榪頒笌瀛楁鐨勫叧緋? 榪欐槸涓瀬涓洪夯鐑︾殑璁捐.

鍏跺師鐞嗗涓?

鍋囪鎴戞湁濡備笅涓涓猰essage

message foo

{

     optional int32 v = 1;  // comments

}

瑕佽幏鍙杤鍚庣殑娉ㄩ噴, 瀵瑰簲鐨刾ath涓?4, 0, 2, 0

4 琛ㄧずdescriptor涓璵essage_type鎵鍦ㄧ殑搴忓彿,鐢變簬message_type瀵瑰簲鐨勭被鍨婦escriptorProto鏄竴涓暟緇? 鎵浠?琛ㄧずfoo鏄湪FileDescriptorProto鐨刴essage_type鏁扮粍綾誨瀷鐨勭儲寮曚負0;

濡傛綾繪帹: 2, 0 琛ㄧず v鍦―escriptorProto緇撴瀯浣撶殑field鎴愬憳搴忓彿涓?鐨勬暟緇勫厓绱犵殑绱㈠紩涓?

 

濡傛灉闇瑕佹洿澶氱殑鍙傝? 鍙互鑾峰彇https://github.com/golang/protobuf

github.com\golang\protobuf\protoc-gen-go宸ョ▼鍐呮湁璇︾粏浠g爜瑙f瀽

]]>
lua璋冭瘯鐨勫伐鍏烽夋嫨http://m.shnenglu.com/sunicdavy/archive/2014/09/28/208441.html鎴橀瓊灝忕瓚鎴橀瓊灝忕瓚Sun, 28 Sep 2014 07:19:00 GMThttp://m.shnenglu.com/sunicdavy/archive/2014/09/28/208441.htmlhttp://m.shnenglu.com/sunicdavy/comments/208441.htmlhttp://m.shnenglu.com/sunicdavy/archive/2014/09/28/208441.html#Feedback7http://m.shnenglu.com/sunicdavy/comments/commentRss/208441.htmlhttp://m.shnenglu.com/sunicdavy/services/trackbacks/208441.html鏈榪戠湅鍒頒竴涓叧浜巚s鐨刲ua璋冭瘯鎻掍歡, 瑁呬簡vs2012璇曚簡涓? 蹇嶄笉浣忓彂姝ゆ枃鎬葷粨涓媗ua鍚勭璋冭瘯宸ュ叿

Decoda

    榪欐槸鐜頒粖鍦扮悆涓婅皟璇昹ua5.1鏈鏂逛究鐨勫伐鍏? 娌℃湁涔嬩竴. 寮哄ぇ鐨勬敞鍏ュ紡璋冭瘯, 鎬ц兘鏋侀珮.鏀寔 鎸傛帴榪涚▼, 鍙橀噺灞曞紑, 鏂偣絳夊悇縐嶆棩甯告墍闇.

鏃╂湡鐨凞ecoda鏄敹璐瑰伐鍏? 鍥犳璐ㄩ噺闈炲父楂?

    Decoda鐜板湪宸茬粡鍋滄寮鍙戝茍寮婧愪簡, 璋冭瘯lua5.2浼歝rash. 婧愪唬鐮佸彲浠ヤ綔涓轟竴縐嶆妧鏈弬鑰? 寰堝dll娉ㄥ叆淇敼鎶鏈? 鐏板父鐗沊

image

LuaStudio

   姣旇緝浼樼鐨勮皟璇曞伐鍏?鍥犱負鏀惰垂), 鍙互璋冭瘯lua5.1/5.2, 鐣岄潰灞炰簬vs2008綾誨瀷, 鍦熻豹鍙互鑰冭檻涔板嚑濂楄瘯璇?/p>

 

ZeroBrane Studio

瀵筶ua5.1鏀寔杈冨ソ, 5.2涔熻兘璋冧絾鍋跺皵榪樻槸浼歝rash, 鍩轟簬榪滅▼璋冭瘯鏂瑰紡, 鎵浠ユц兘鐣ヤ綆.

RemDebug

娌℃湁IDE, 綰懡浠よ鏂瑰紡璋冭瘯鍣? 浣嗗洜涓虹畝鍗? 鎵浠ュ彲浠ュ弬鑰冨悗鍐欎竴涓嚜宸辯殑紼嬪簭鍐呭緩璋冭瘯鍣?/p>

Babe Lua

鎶婅繖璐ф斁鍦ㄦ渶鍚庢槸鏈夊師鍥犵殑, 榪樿寰楅偅鍙ヨ佽瘽: 鑰佸涓寮婧? 鎴戜滑灝辨湁鑷富鐮斿彂浜? 瀵圭殑, 榪欒揣涓瀹氭槸鍙傝冧簡Decoda鐨勪唬鐮佸悗鎼炲嚭涓獀s鐨勬彃浠舵潵, 铏界劧涓嶆敹璐? 浣嗘槸涓嶆彁涓嬪弬鑰冨璞$殑琛屼負榪樻槸鍊煎緱鎵規枟鐨? 榪欒揣鍦ㄤ腑鏂囧崥瀹笂璇? 涓嶆敮鎸佹寕鎺ュ埌榪涚▼(Decoda鏀寔), 涓嶆敮鎸?4浣嶈皟璇?LuaStudio鏀寔), 璋冭瘯30~50嬈″伓灝旀寕1鍒?嬈? 鍝? 姣曠珶鍙槸浠g爜鎼繍宸? 涓嶇敓浜т唬鐮?

榪欒揣瑁呬笂, 鑳界敤, 璋?.2鏄笉琛岀殑, 5.1姣擠ecoda鏂逛究鐐? 姣曠珶vs鏀寔鎮誕鏄劇ず鍙橀噺.

 

璇翠簡閭d箞澶? 鍏跺疄瀵逛簬lua5.2鐗堟湰鐨勮皟璇? 榪樻槸娌℃湁鍏嶈垂鐨勬瘮杈冨悎閫傜殑鏂規, 濡傛灉瀹炲湪鎯寵皟璇? 榪樻槸鍙互鍙傝冧笅RemDebug鐨勫師鐞嗗強lua瀹樻柟璋冭瘯鏂囨。, 鑷繁閫氳繃c api璋冪敤鍐欎竴濂楅傚悎鑷繁鐨勮繙紼嬭皟璇曞伐鍏? 鍏跺疄娌℃湁澶氬鏉? 浣嗘繪瘮涓嶈皟璇曠殑濂?img class="wlEmoticon wlEmoticon-smile" style="border-top-style: none; border-bottom-style: none; border-right-style: none; border-left-style: none" alt="寰瑧" src="http://m.shnenglu.com/images/cppblog_com/sunicdavy/Windows-Live-Writer/lua_D2A5/wlEmoticon-smile_2.png">



]]>
lua module/package 鏈哄埗鐨勮嚜瀹氫箟璇誨彇http://m.shnenglu.com/sunicdavy/archive/2014/04/16/206610.html鎴橀瓊灝忕瓚鎴橀瓊灝忕瓚Wed, 16 Apr 2014 12:29:00 GMThttp://m.shnenglu.com/sunicdavy/archive/2014/04/16/206610.htmlhttp://m.shnenglu.com/sunicdavy/comments/206610.htmlhttp://m.shnenglu.com/sunicdavy/archive/2014/04/16/206610.html#Feedback0http://m.shnenglu.com/sunicdavy/comments/commentRss/206610.htmlhttp://m.shnenglu.com/sunicdavy/services/trackbacks/206610.htmllua5.2鍚? 瀹樻柟寤鴻澶у鏀懼純module/package鏈哄埗, 榪欏鏈哄埗瀵逛簬浣跨敤鑰呮潵璇存槸鏂逛究鐨? 瀵逛簬module鐨勭紪鍐欒呯畝鐩磋鎶撶媯, 鎵鏈塵odule鍚庣殑鍑芥暟瀵筥G鍧囦笉鍙, 榪樿涓涓釜鎵嬪姩鍦╩odule鍓嶈漿鎴恖ocal璋冪敤. 鐩稿綋鍙嶄漢綾? 瀹樻柟寤鴻澶у鎵嬪姩瀹炵幇package鏈哄埗. 鏈崥瀹箣鍓嶆湁瀹炵幇榪? 鍙傝?a title="http://m.shnenglu.com/sunicdavy/archive/2013/12/10/204696.html" href="http://m.shnenglu.com/sunicdavy/archive/2013/12/10/204696.html">http://m.shnenglu.com/sunicdavy/archive/2013/12/10/204696.html

鐢變簬瑕佷嬌鐢╬rotoc-gen-lua, 榪欎笢瑗跨敓鎴愬嚭鏉ョ殑lua渚濈劧浣跨敤瀹樻柟鐨刴odule/package鏈哄埗. 瀵逛簬娓告垙欏圭洰鏉ヨ, 鎯寵繘琛屼竴浜涜嚜瀹氫箟璇誨彇, 鍔犲瘑絳? 灝卞彉寰椾笉鍙兘. 騫稿ソ瀹樻柟鍦ㄦ墿灞曚笂鏀寔鐨勮繕鏄笉閿欑殑.

鍙傝僱ua5.2鐨勫畼鏂規枃妗?a title="http://www.lua.org/manual/5.2/manual.html#pdf-require" >http://www.lua.org/manual/5.2/manual.html#pdf-require

require鏃? lua浼氳嚜鍔ㄦ牴鎹竴瀹氱殑鎼滅儲瑙勫緥鎵懼埌鍔犺澆浠g爜鐨勬柟娉? 榪欎釜鏂規硶瀹氫箟鍦?a name="pdf-package.searchers">package.searchers榪欎釜鏁扮粍涓? 涓鍏辨湁4涓姞杞芥悳绱㈤『搴?/p>

1. preload, 瀵瑰凡鍔犺澆鐨刴odule榪涜鐩存帴榪斿洖, 瀵瑰簲package.preload[modname]

2. lualoader, 瀵筶ua鏂囦歡榪涜鍔犺澆, 鎼滅儲璺緞涓?a >package.path

3. cloader, 瀵筶ua鏍囧噯dll榪涜鍔犺澆, 鎼滅儲璺緞涓?a >package.cpath

4. croot, 瀹樻柟鏂囨。璇寸殑鏄痑ll-in-one鍔犺澆鍣? 鎰熻寰堢濂? 鎰熷叴瓚e彲浠ヨ嚜琛屽弬鑰冩簮鐮?/p>

閭d箞, 濡傛灉鍙渶瑕佽嚜宸辯殑鍔犺澆鍣? 鍙渶瑕佽繖鏍峰仛:

  package.searchers[2] = function( name )
        print("try to load", name )
    end
    package.searchers[3] = nil
    package.searchers[4] = nil
    
    require "libtest"
    鍙繚鐣檖reload鍔熻兘, 鐒跺悗灝嗙浜屼釜鍔犺澆鍣ㄦ崲鎴愯嚜宸辯殑鍔犺澆鍑芥暟, 絎笁,絎洓鐩存帴灞忚斀



]]>
鎺㈣lua5.2鏂扮壒鎬у強package鏈哄埗妯℃嫙http://m.shnenglu.com/sunicdavy/archive/2013/12/10/204696.html鎴橀瓊灝忕瓚鎴橀瓊灝忕瓚Tue, 10 Dec 2013 08:29:00 GMThttp://m.shnenglu.com/sunicdavy/archive/2013/12/10/204696.htmlhttp://m.shnenglu.com/sunicdavy/comments/204696.htmlhttp://m.shnenglu.com/sunicdavy/archive/2013/12/10/204696.html#Feedback0http://m.shnenglu.com/sunicdavy/comments/commentRss/204696.htmlhttp://m.shnenglu.com/sunicdavy/services/trackbacks/204696.html欏圭洰瀹㈡埛绔剼鏈叏闈㈠崌綰ua5.2 榪欐槸鑷?6騫村悗鏈澶х殑涓嬈′富騫叉洿鏂? 甯︽潵鐨勬満鍒? 鍑芥暟鍙樺寲涔熸槸闈炲父涓嶉敊鐨?/p>

1. 鍘繪帀浜嗗叏灞鎬ц川鐨剆etfenv/getfenv緋誨垪鍑芥暟, 璇█灞傞潰鎻愪緵_ENV璇硶緋? 榪欎笢瑗胯窡:鎿嶄綔絎︿竴鏍? 鍙瓨鍦ㄤ簬緙栬瘧鏈?

瀹樻柟寤鴻鑷繁瀹炵幇module/require/package鏈哄埗, 姣曠珶鍘熺敓榪欏鏈哄埗瀹炵幇澶急鏅轟簡..

2. 鎻愪緵浜嗘棤絎﹀彿璁塊棶鍑芥暟

3. 鏇村鐨刲ua api鍙樺寲. 濡傛灉鎯沖吋瀹筶ua5.1鐨勫啓娉? 鍙互鍙傝?a >luabridge鍐匧uaHelpers.h鐨勫疄鐜?/p>

浠ヤ笅鏄湰浜轟嬌鐢╨ua5.2瀹炵幇鐨勪竴濂梡ackage鏈哄埗, 渚涘ぇ瀹跺弬鑰?/p>

package = {}
 
-- 璇誨彇鏍囪
package.loaded = {}
 
-- 鎼滅儲璺緞鏁扮粍
package.path = {}
 
package.access =
{
    ["string"] = string,
    ["print"] = print,
    ["table"] = table,
    ["assert"] = assert,
    ["error"] = error,
    ["pairs"] = pairs,
    ["ipairs"] = ipairs,
    ["tonumber"] = tonumber,
    ["tostring"] = tostring,
    ["type"] = type,
    ["math"] = math,
}
 
local function getreadablepath( name, pathlist )
    for _, path in ipairs(pathlist) do
        
        local fullpath = path .. "/" .. name .. ".lua"
        local f = io.open( fullpath )
        if f then
            f:close()
            return fullpath
        end
    end
    
    return nil
    
end
 
 
function package.import( name )
 
    -- 宸茬粡璇誨彇鐨勭洿鎺ヨ繑鍥?/pre>
    local existedenv = package.loaded[name]
    if existedenv then
        return existedenv
    end
    
    local access = package.access
    
    -- 璁劇疆璁塊棶鎺у埗鏉冮檺
    local meta = 
    {
        __index = function( tab, key )
            
            -- 浼樺厛鍙栧寘鐨勭┖闂?/pre>
            local v = rawget( tab, key )
            
            if v then
                return v
            end
            
            -- 鎵句笉鍒版椂,浠庡彲璁塊棶鐨勬潈闄愯〃涓煡鎵?/pre>
            return access[key]             
            
        end,
    }
    
    -- 鍒濆鍖栦竴涓寘鐨勫叏灞鐜, 騫惰緗闂柟娉?/pre>
    local env = setmetatable( {} , meta )
    
    --
    local readablepath = getreadablepath( name, package.path )
    
    if not readablepath then
        error(string.format("package '%s' not found \n%s", name, table.concat( package.path, "\n" ) ) )
    end
 
    local func = loadfile( readablepath, "bt",  env )
    
    if type(func) ~= "function" then
        return nil
    end
    
    -- 璁劇疆鏍囪
    package.loaded[name] = env
    
    -- 鎵ц鍏ㄥ眬絀洪棿
    func( )
    
    return env
end
 
package.path = {"E:/Download/t"}
local m = package.import "m"
 
m.foo()
浠ヤ笅鏄痬妯″潡(m.lua)鐨勫唴瀹?/pre>
 
 
 
function foo( )
    print("杞澆娉ㄦ槑: 鎴橀瓊灝忕瓚 http://m.shnenglu.com/sunicdavy", io )    
end

 

嫻嬭瘯緇撴灉涓? io鎵撳嵃鍑簄il, 鏄劇ず鏉冮檺宸茬粡琚帶鍒朵綇

鏈琾ackage璁捐姣斿師鐢焢ackage鏇寸伒媧? 鏇村己澶?/p>

]]>
瓚呰秺luabind鐨刲uaBridgehttp://m.shnenglu.com/sunicdavy/archive/2013/12/07/204648.html鎴橀瓊灝忕瓚鎴橀瓊灝忕瓚Sat, 07 Dec 2013 06:05:00 GMThttp://m.shnenglu.com/sunicdavy/archive/2013/12/07/204648.htmlhttp://m.shnenglu.com/sunicdavy/comments/204648.htmlhttp://m.shnenglu.com/sunicdavy/archive/2013/12/07/204648.html#Feedback24http://m.shnenglu.com/sunicdavy/comments/commentRss/204648.htmlhttp://m.shnenglu.com/sunicdavy/services/trackbacks/204648.html 

鏈榪戝噯澶囧湪鎵嬫満欏圭洰瀹㈡埛绔腑浣跨敤lua, 浠ュ墠涓鐩村湪鏈嶅姟鍣ㄤ嬌鐢╨uabind. 鍙﹀, tolua++涔熶綋楠岃繃, LuaPlus涔熷湪鏃╁勾鐢ㄨ繃. 浠ヤ笅鏄湰浜哄榪欎簺緇戝畾搴撶殑涓漢鎰熻:

luabind

鍒╃敤boost鏈哄埗鎶婄粦瀹氬仛鍒版瀬鑷? 姣旇緝閫傚悎涓籧++, 寮眑ua鐨勮剼鏈鏋?

浣滆呭凡緇忓仠姝㈡洿鏂? 鍦╳indows/linux緙栬瘧娌¢棶棰? 浣嗘槸鍦╥os鐨凩LVM涓? 鏃犳硶緙栬瘧

tolua++

鍍廲ocos2dx浣跨敤tolua++涔熸槸鍙互鐞嗚В鐨? 閭d箞澶氬嚱鏁伴渶瑕佺粦瀹? tolua++鐨勫ご鏂囦歡parse鍙婅嚜鍔ㄤ唬鐮佺敓鎴愯妭綰︿簡寰堝鎵嬪姩緇戝畾鐨勬椂闂?

浣嗘槸鐪嬪埌浠g爜涓湁涓閮ㄥ垎bugfix灝卞績瀛樹笉瀹?綰釜浜烘劅瑙? 鏈漢浣跨敤涓嶅, 嬈㈣繋鐮栧ご浼哄?,鍙﹀, tolua++鍙兘鐢辮剼鏈眰椹卞姩C++, 鑰屾病鏈夊皢宸茬粡瀹炰緥鍖栫殑鍙ユ焺娉ㄥ唽鍒發ua鐨勫姛鑳戒篃鏄厼絎斿晩

 

LuaPlus

鎺ュ彛杈冧負綆鍗? 閫備簬鍒濆鑰呬笂鎵? 鏃犱換浣曠殑妯℃澘, 鎬ц兘涓嶉珮

 

luaBridge

欏圭洰鍦板潃: https://github.com/vinniefalco/LuaBridge

鎵嬪唽: http://vinniefalco.com/LuaBridge/Manual.html

綰ご鏂囦歡瀹炵幇, 鏃犻渶緙栬瘧, 鍖呭惈榪涘叆宸ョ▼鍗沖彲, 鎺ュ彛綆媧侀珮鏁?/p>

鐩告瘮luabind, 鍞竴涓嶈兘瀹炵幇鐨勫父鐢ㄥ姛鑳藉氨鏄灇涓? 浣嗘槸鍙互鏀寔綾繪垚鍛橀潤鎬佸彉閲忔敞鍐? 榪欎釜灝辨棤鎵璋撲簡, 鎵嬪啓涓涓灇涓炬敮鎸佷篃寰堢畝鍗?/p>

鐪嬩笅婕旂ず浠g爜:

class A
{
public:
    A( )
    {

    }
    virtual void foo( int a )
    {
        printf("foo base\n");
    }

    std::string Member;
};

class B : public A
{
public:
    virtual void foo( int a )
    {
        printf("foo inherited\n");
    }
};
void foo( int b )
{

}

luabridge::getGlobalNamespace(L)
        .beginClass<A>("Sobj")
            .addConstructor<void (*) (void)> ()
            .addFunction("foo", &A::foo)
            .addData("Member",&A::Member)
        .endClass()
        .deriveClass<B, A>("SSec")
            .addFunction("foo",&B::foo )
        .endClass();

    luabridge::getGlobalNamespace(L).addFunction("foo", foo );


    B ins;
    ins.Member = "data";
    luabridge::setGlobal(L, ins, "ins");

lua渚х殑浠g爜

local a = Sobj()
a:foo(2)
a.Member = "hello"


ins:foo(3)


]]>
Google Protocolbuf 鏂囨湰鏍煎紡鐨勮В鏋?/title><link>http://m.shnenglu.com/sunicdavy/archive/2013/07/09/201643.html</link><dc:creator>鎴橀瓊灝忕瓚</dc:creator><author>鎴橀瓊灝忕瓚</author><pubDate>Tue, 09 Jul 2013 10:29:00 GMT</pubDate><guid>http://m.shnenglu.com/sunicdavy/archive/2013/07/09/201643.html</guid><wfw:comment>http://m.shnenglu.com/sunicdavy/comments/201643.html</wfw:comment><comments>http://m.shnenglu.com/sunicdavy/archive/2013/07/09/201643.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://m.shnenglu.com/sunicdavy/comments/commentRss/201643.html</wfw:commentRss><trackback:ping>http://m.shnenglu.com/sunicdavy/services/trackbacks/201643.html</trackback:ping><description><![CDATA[<p>protobuf灝辨槸涓烘噿浜鴻岄犵殑宸ュ叿, 鍟ュ崗璁? 鍟ラ厤緗枃浠? 緇熺粺瀹氫箟proto, 瑙f瀽灝眔k, 闈炲父鏂逛究</p> <p> </p> <p>鏂囨湰鏍煎紡鐨勮В鏋愰敊璇笉鑳戒嬌鐢ㄦ崟鑾烽敊璇潵鑾峰彇, 鍥犳,鎴戜滑闇瑕佷嬌鐢ㄨ嚜瀹氫箟鐨勯敊璇敹闆嗗櫒榪涜鏀墮泦, 鐪嬩唬鐮?</p> <div id="hvzpftn" class="csharpcode"><pre class="alt">#include <google/protobuf/text_format.h></pre><pre>#include <google/protobuf/io/zero_copy_stream_impl_lite.h></pre><pre class="alt">#include <google/protobuf/io/tokenizer.h></pre><pre> </pre><pre class="alt"><span id="hvzpftn" class="kwrd">class</span> PBTextErrorCollector : <span id="hvzpftn" class="kwrd">public</span> google::protobuf::io::ErrorCollector</pre><pre>{</pre><pre class="alt"><span id="hvzpftn" class="kwrd">public</span>:</pre><pre> PBTextErrorCollector( <span id="hvzpftn" class="kwrd">const</span> std::<span id="hvzpftn" class="kwrd">string</span>& FileName )</pre><pre class="alt"> : mFileName( FileName )</pre><pre> {</pre><pre class="alt"> </pre><pre> }</pre><pre class="alt"> </pre><pre> <span id="hvzpftn" class="kwrd">virtual</span> <span id="hvzpftn" class="kwrd">void</span> AddError(<span id="hvzpftn" class="kwrd">int</span> line, <span id="hvzpftn" class="kwrd">int</span> column, <span id="hvzpftn" class="kwrd">const</span> <span id="hvzpftn" class="kwrd">string</span>& message)</pre><pre class="alt"> {</pre><pre> CCLog(<span id="hvzpftn" class="str">"%s(%d:%d) %s "</span>, mFileName.c_str(), line, column, message.c_str() );</pre><pre class="alt"> }</pre><pre> </pre><pre class="alt"> <span id="hvzpftn" class="kwrd">virtual</span> <span id="hvzpftn" class="kwrd">void</span> AddWarning(<span id="hvzpftn" class="kwrd">int</span> line, <span id="hvzpftn" class="kwrd">int</span> column, <span id="hvzpftn" class="kwrd">const</span> <span id="hvzpftn" class="kwrd">string</span>& message) </pre><pre> {</pre><pre class="alt"> CCLog(<span id="hvzpftn" class="str">"%s(%d:%d) %s "</span>, mFileName.c_str(), line, column, message.c_str() );</pre><pre> }</pre><pre class="alt"> </pre><pre><span id="hvzpftn" class="kwrd">private</span>:</pre><pre class="alt"> std::<span id="hvzpftn" class="kwrd">string</span> mFileName;</pre><pre>};</pre><pre class="alt"> </pre></div> <style type="text/css">.csharpcode, .csharpcode pre { font-size: small; color: black; font-family: consolas, "Courier New", courier, monospace; background-color: #ffffff; /*white-space: pre;*/ } .csharpcode pre { margin: 0em; } .csharpcode .rem { color: #008000; } .csharpcode .kwrd { color: #0000ff; } .csharpcode .str { color: #006080; } .csharpcode .op { color: #0000c0; } .csharpcode .preproc { color: #cc6633; } .csharpcode .asp { background-color: #ffff00; } .csharpcode .html { color: #800000; } .csharpcode .attr { color: #ff0000; } .csharpcode .alt { background-color: #f4f4f4; width: 100%; margin: 0em; } .csharpcode .lnum { color: #606060; } </style> <p>瑙f瀽浠g爜</p> <div id="hvzpftn" class="csharpcode"><pre class="alt">google::protobuf::TextFormat::Parser P; </pre><pre> P.RecordErrorsTo( &PEC );</pre><pre class="alt"> P.Parse( &AIS, &AF );</pre></div> <style type="text/css">.csharpcode, .csharpcode pre { font-size: small; color: black; font-family: consolas, "Courier New", courier, monospace; background-color: #ffffff; /*white-space: pre;*/ } .csharpcode pre { margin: 0em; } .csharpcode .rem { color: #008000; } .csharpcode .kwrd { color: #0000ff; } .csharpcode .str { color: #006080; } .csharpcode .op { color: #0000c0; } .csharpcode .preproc { color: #cc6633; } .csharpcode .asp { background-color: #ffff00; } .csharpcode .html { color: #800000; } .csharpcode .attr { color: #ff0000; } .csharpcode .alt { background-color: #f4f4f4; width: 100%; margin: 0em; } .csharpcode .lnum { color: #606060; } </style> <p> </p> <p>鍙﹀: 鏂囨湰鏍煎紡鐨勬敞閲婁嬌鐢╱nix shell椋庢牸: 浠?寮澶?/p> <p>涓嬮潰鏄垜鐨勬枃鏈牸寮忕殑閰嶇疆鏂囦歡</p> <p> </p><pre class="csharpcode">AnchorPointX: 0.5 AnchorPointY: 0 SpriteScale: 2 ComponentName: <span id="hvzpftn" class="str">"ActorActionManager"</span> ComponentName: <span id="hvzpftn" class="str">"ActorFrameEventDispatcher"</span> <span id="hvzpftn" class="rem">#ComponentName: "SoundFXController"</span> ComponentName: <span id="hvzpftn" class="str">"RoleDeltaMoveController"</span> ComponentName: <span id="hvzpftn" class="str">"RoleBehaviorDirector"</span> InitAction: AA_Idle Animations { AnimationName: <span id="hvzpftn" class="str">"mai_idle"</span> AnimationInterval: 0.067 } </pre> <style type="text/css">.csharpcode, .csharpcode pre { font-size: small; color: black; font-family: consolas, "Courier New", courier, monospace; background-color: #ffffff; /*white-space: pre;*/ } .csharpcode pre { margin: 0em; } .csharpcode .rem { color: #008000; } .csharpcode .kwrd { color: #0000ff; } .csharpcode .str { color: #006080; } .csharpcode .op { color: #0000c0; } .csharpcode .preproc { color: #cc6633; } .csharpcode .asp { background-color: #ffff00; } .csharpcode .html { color: #800000; } .csharpcode .attr { color: #ff0000; } .csharpcode .alt { background-color: #f4f4f4; width: 100%; margin: 0em; } .csharpcode .lnum { color: #606060; } </style><img src ="http://m.shnenglu.com/sunicdavy/aggbug/201643.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.shnenglu.com/sunicdavy/" target="_blank">鎴橀瓊灝忕瓚</a> 2013-07-09 18:29 <a href="http://m.shnenglu.com/sunicdavy/archive/2013/07/09/201643.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>Lua浣跨敤protocolbufhttp://m.shnenglu.com/sunicdavy/archive/2013/04/24/199693.html鎴橀瓊灝忕瓚鎴橀瓊灝忕瓚Wed, 24 Apr 2013 07:44:00 GMThttp://m.shnenglu.com/sunicdavy/archive/2013/04/24/199693.htmlhttp://m.shnenglu.com/sunicdavy/comments/199693.htmlhttp://m.shnenglu.com/sunicdavy/archive/2013/04/24/199693.html#Feedback4http://m.shnenglu.com/sunicdavy/comments/commentRss/199693.htmlhttp://m.shnenglu.com/sunicdavy/services/trackbacks/199693.html鍦?a >https://code.google.com/p/protoc-gen-lua/ 涓嬭澆緗戞槗鍏勫紵鍐欑殑lua鐨刾rotobuf鎻掍歡(緗戞槗閮芥妸pb緇欏紕瀹屼簡,as3鐨勪篃鏄粬浠啓鐨?.)

 

緙栬瘧python鐗堢殑protobuf妯″潡

鍦?a >https://code.google.com/p/protobuf/downloads/list 涓嬭澆瀹樻柟鐨勫師鐢熺増鏈琾rotobuf, 榪欓噷鍙戞枃鏃朵嬌鐢ㄧ殑鏄?.4.1鐗堟湰

緙栬瘧鍑簆rotoc鎵ц鏂囦歡, 鏀句竴浠藉湪protobuf-2.4.1\src\涓?/p>

涓嬭澆python2.7鐗堟湰, 鍦╬rotobuf-2.4.1\python涓嬭繍琛宲ython setup.py install(濡傛灉鎵句笉鍒皃ython璇風粰python緇濆璺緞)

榪欎竴姝? python浼氫笅涓涓泲( 鐪熺殑鏄竴涓猵ython鐨別gg鏂囦歡 ), 鐒跺悗緙栬瘧鍑簆ython鐗堟湰鐨刾rotobuf妯″潡鏀劇疆鍦╬ython涓?/p>

 

鍒朵綔protoc-gen-lua鐨勬壒澶勭悊

鏀句竴浠絧rotoc鍦╬rotoc-gen-lua鐨刾lugin鐩綍

緙栧啓鎵瑰鐞?protoc-gen-lua.bat

@python "%~dp0protoc-gen-lua"

 

鍗忚鐩綍鐢熸垚鑴氭湰

鍦ㄤ綘闇瑕佹斁緗崗璁殑鐩綍緙栧啓濡備笅鎵瑰鐞?/p>

buildproto.bat

rd /S /Q .\%1%
"..\..\src\protoc-gen-lua\plugin\protoc.exe" --plugin=protoc-gen-lua="..\..\src\protoc-gen-lua\plugin\protoc-gen-lua.bat" --lua_out=. %1%.proto

娉ㄦ剰protoc.exe鍙妏rotoc-gen-lua.bat鐨勮礬寰勭鍚堜綘鐨勮礬寰?/p>

鍐嶇紪鍐欒緙栬瘧鐨刾roto鍗忚鐨勬壒澶勭悊generate.bat

call buildproto.bat loginsvc

鎵цgenerate.bat鍚? 灝嗕細緙栬瘧鍚岀洰褰曚笅鐨刲oginsvc.proto,杈撳嚭loginsvc_pb.lua

 

緙栬瘧閾炬帴lua鐨刾b搴?/strong>

灝唒rotoc-gen-lua\protobuf\鐩綍鎷瘋礉鍒頒箣鍓嶇殑鍗忚鐩綍

灝嗗叾涓嬬殑pb.c閾懼叆浣犵殑宸ョ▼, 娉ㄦ剰VS2010鐨刅C涓嬮渶瑕佷慨鏀規簮鐮?/p>

1.灝?#include <endian.h>淇敼涓?/p>

#ifndef _WIN32
     #include <endian.h>
     #endif

閬垮厤鍦╳indows涓嬬己澶辨枃浠舵姤閿?

2. 璋冩暣struct_unpack鍑芥暟鍓嶅嚑琛屼負

static int struct_unpack(lua_State *L)
{
    uint8_t format = luaL_checkinteger(L, 1);
    size_t len;
    const uint8_t* buffer = (uint8_t*)luaL_checklstring(L, 2, &len);
    size_t pos = luaL_checkinteger(L, 3);
    uint8_t out[8];   

    buffer += pos;

閬垮厤VS2010鐨刅C緙栬瘧鍣ㄨ繃浜庢爣鍑? 涓ユ牸瑕佹眰C椋庢牸鍑芥暟鍙橀噺鍓嶇疆澹版槑

鍦╨ua_State澹版槑鍚庢坊鍔犲涓嬩唬鐮?/p>

extern "C" { int luaopen_pb (lua_State *L);}   // 娉ㄦ剰闃插湪鍛藉悕絀洪棿澶栫殑鍏ㄥ眬澹版槑

    luaopen_pb( L );   // 鐩存帴娉ㄥ叆鍏ㄥ眬pb, 閬垮厤鍔ㄦ佸姞杞絧b.dll閫犳垚鐨勪竴緋誨垪璺ㄥ鉤鍙伴棶棰?/p>

 

lua涓嬌鐢╬b

local loginsvc_pb = require “loginsvc_pb”
 
local REQ = loginsvc_pb.CheckVersionREQ()
local Data = REQ:SerializeToString( )
 
local ACK = loginsvc_pb.CheckVersionACK()
ACK:ParseFromString( Data )

 

.csharpcode, .csharpcode pre { font-size: small; color: black; font-family: consolas, "Courier New", courier, monospace; background-color: #ffffff; /*white-space: pre;*/ } .csharpcode pre { margin: 0em; } .csharpcode .rem { color: #008000; } .csharpcode .kwrd { color: #0000ff; } .csharpcode .str { color: #006080; } .csharpcode .op { color: #0000c0; } .csharpcode .preproc { color: #cc6633; } .csharpcode .asp { background-color: #ffff00; } .csharpcode .html { color: #800000; } .csharpcode .attr { color: #ff0000; } .csharpcode .alt { background-color: #f4f4f4; width: 100%; margin: 0em; } .csharpcode .lnum { color: #606060; }

鎴戠殑宸ョ▼鐩綍

script\
        protobuf\
            buildproto.bat
            generate.bat
            loginsvc_pb.lua
            loginsvc.proto
        Main.lua
    src\
        protoc-gen-lua\
            example\
            plugin\
            protobuf\



]]>
Lua瀹炵幇浜嬩歡媧懼彂鍣?/title><link>http://m.shnenglu.com/sunicdavy/archive/2013/04/24/199692.html</link><dc:creator>鎴橀瓊灝忕瓚</dc:creator><author>鎴橀瓊灝忕瓚</author><pubDate>Wed, 24 Apr 2013 07:19:00 GMT</pubDate><guid>http://m.shnenglu.com/sunicdavy/archive/2013/04/24/199692.html</guid><wfw:comment>http://m.shnenglu.com/sunicdavy/comments/199692.html</wfw:comment><comments>http://m.shnenglu.com/sunicdavy/archive/2013/04/24/199692.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.shnenglu.com/sunicdavy/comments/commentRss/199692.html</wfw:commentRss><trackback:ping>http://m.shnenglu.com/sunicdavy/services/trackbacks/199692.html</trackback:ping><description><![CDATA[<p>涓轟簡闄嶄綆妯″潡闂寸殑鑰﹀悎, 寰堝緋葷粺浣跨敤浜嬩歡媧懼彂鏈哄埗, 鎺ユ敹鏂規棤闇鐭ラ亾媧懼彂鑰呮槸璋?鍦≦t涓?榪欎釜緋葷粺琚О浣淪lot&Signal, 闇瑕侀厤鍚坢oc浠g爜鐢熸垚鏈哄埗, 浣嗘槸緋葷粺鏈韓鏄嚎紼嬪畨鍏ㄧ殑.</p> <p>榪欓噷鎴戜滑璁ㄨ鐨勬槸lua鐨勪簨浠舵淳鍙戞満鍒? 鎴戝皢姝ゅ啓鎴恖ua妯″潡, 鏂逛究閰嶅悎cocos2dx榪涜閫昏緫澶勭悊</p> <p> </p> <div id="hvzpftn" class="csharpcode"><pre class="alt"><span id="hvzpftn" class="kwrd">local</span> Global = _G</pre><pre><span id="hvzpftn" class="kwrd">local</span> package = _G.package</pre><pre class="alt"><span id="hvzpftn" class="kwrd">local</span> setmetatable = _G.setmetatable</pre><pre><span id="hvzpftn" class="kwrd">local</span> assert = _G.assert</pre><pre class="alt"><span id="hvzpftn" class="kwrd">local</span> table = _G.table</pre><pre><span id="hvzpftn" class="kwrd">local</span> pairs = _G.pairs</pre><pre class="alt"><span id="hvzpftn" class="kwrd">local</span> ipairs = _G.ipairs</pre><pre> </pre><pre class="alt"> </pre><pre>module <span id="hvzpftn" class="str">"Core.EventDispatcher"</span></pre><pre class="alt"> </pre><pre>--[[</pre><pre class="alt">鏁版嵁灞傛</pre><pre> </pre><pre class="alt">[<span id="hvzpftn" class="str">"EventName1"</span>] =</pre><pre>{</pre><pre class="alt"> [<span id="hvzpftn" class="str">"_StaticFunc"</span>] = { Func1, Func2 },</pre><pre> </pre><pre class="alt"> [Object1] = { Func1, Func2 },</pre><pre> [Object2] = { Func1, Func2 },</pre><pre class="alt">},</pre><pre> </pre><pre class="alt">[<span id="hvzpftn" class="str">"EventName2"</span>] =</pre><pre>{</pre><pre class="alt"> ...</pre><pre>}</pre><pre class="alt"> </pre><pre>]]</pre><pre class="alt"> </pre><pre>-- 榛樿璋冪敤鍑芥暟</pre><pre class="alt"><span id="hvzpftn" class="kwrd">local</span> <span id="hvzpftn" class="kwrd">function</span> PreInvoke( EventName, Func, Object, UserData, ... )</pre><pre> </pre><pre class="alt"> <span id="hvzpftn" class="kwrd">if</span> Object then</pre><pre> Func( Object, EventName, ... )</pre><pre class="alt"> <span id="hvzpftn" class="kwrd">else</span></pre><pre> Func( EventName, ... )</pre><pre class="alt"> <span id="hvzpftn" class="kwrd">end</span></pre><pre> </pre><pre class="alt"><span id="hvzpftn" class="kwrd">end</span></pre><pre> </pre><pre class="alt"><span id="hvzpftn" class="kwrd">function</span> New( ) </pre><pre> </pre><pre class="alt"> <span id="hvzpftn" class="kwrd">local</span> NewObj = setmetatable( {}, { __index = package.loaded[<span id="hvzpftn" class="str">"Core.EventDispatcher"</span>] } )</pre><pre> </pre><pre class="alt"> -- 瀵硅薄鎴愬憳鍒濆鍖?/pre><pre> NewObj.mPreInvokeFunc = PreInvoke</pre><pre class="alt"> NewObj.mEventTable = {}</pre><pre> </pre><pre class="alt"> <span id="hvzpftn" class="kwrd">return</span> NewObj</pre><pre><span id="hvzpftn" class="kwrd">end</span></pre><pre class="alt"> </pre><pre>-- 娣誨姞</pre><pre class="alt"><span id="hvzpftn" class="kwrd">function</span> Add( Self, EventName, Func, Object, UserData )</pre><pre> </pre><pre class="alt"> assert( Func )</pre><pre> </pre><pre class="alt"> Self.mEventTable[ EventName ] = Self.mEventTable[ EventName ] or {}</pre><pre> </pre><pre class="alt"> <span id="hvzpftn" class="kwrd">local</span> Event = Self.mEventTable[ EventName ]</pre><pre> </pre><pre class="alt"> <span id="hvzpftn" class="kwrd">if</span> not Object then</pre><pre> Object = <span id="hvzpftn" class="str">"_StaticFunc"</span></pre><pre class="alt"> <span id="hvzpftn" class="kwrd">end</span></pre><pre> </pre><pre class="alt"> Event[Object] = Event[Object] or {}</pre><pre> <span id="hvzpftn" class="kwrd">local</span> ObjectEvent = Event[Object]</pre><pre class="alt"> </pre><pre> ObjectEvent[Func] = UserData or true</pre><pre class="alt"> </pre><pre><span id="hvzpftn" class="kwrd">end</span></pre><pre class="alt"> </pre><pre>-- 璁劇疆璋冪敤鍓嶅洖璋?/pre><pre class="alt"><span id="hvzpftn" class="kwrd">function</span> SetDispatchHook( Self, HookFunc )</pre><pre> </pre><pre class="alt"> Self.mPreInvokeFunc = HookFunc</pre><pre><span id="hvzpftn" class="kwrd">end</span></pre><pre class="alt"> </pre><pre> </pre><pre class="alt">-- 媧懼彂</pre><pre><span id="hvzpftn" class="kwrd">function</span> Dispatch( Self, EventName, ... )</pre><pre class="alt"> </pre><pre> assert( EventName )</pre><pre class="alt"> </pre><pre> <span id="hvzpftn" class="kwrd">local</span> Event = Self.mEventTable[ EventName ]</pre><pre class="alt"> </pre><pre> <span id="hvzpftn" class="kwrd">for</span> Object,ObjectFunc <span id="hvzpftn" class="kwrd">in</span> pairs( Event ) do</pre><pre class="alt"> </pre><pre> <span id="hvzpftn" class="kwrd">if</span> Object == <span id="hvzpftn" class="str">"_StaticFunc"</span> then</pre><pre class="alt"> </pre><pre> <span id="hvzpftn" class="kwrd">for</span> Func, UserData <span id="hvzpftn" class="kwrd">in</span> pairs( ObjectFunc ) do</pre><pre class="alt"> Self.mPreInvokeFunc( EventName, Func, nil, UserData, ... ) </pre><pre> <span id="hvzpftn" class="kwrd">end</span></pre><pre class="alt"> </pre><pre> <span id="hvzpftn" class="kwrd">else</span></pre><pre class="alt"> </pre><pre> <span id="hvzpftn" class="kwrd">for</span> Func, UserData <span id="hvzpftn" class="kwrd">in</span> pairs( ObjectFunc ) do</pre><pre class="alt"> Self.mPreInvokeFunc( EventName, Func, Object, UserData, ... )</pre><pre> <span id="hvzpftn" class="kwrd">end</span></pre><pre class="alt"> </pre><pre> <span id="hvzpftn" class="kwrd">end</span></pre><pre class="alt"> </pre><pre> <span id="hvzpftn" class="kwrd">end</span></pre><pre class="alt"> </pre><pre><span id="hvzpftn" class="kwrd">end</span></pre><pre class="alt"> </pre><pre>-- 鍥炶皟鏄惁瀛樺湪</pre><pre class="alt"><span id="hvzpftn" class="kwrd">function</span> Exist( Self, EventName )</pre><pre> </pre><pre class="alt"> assert( EventName )</pre><pre> </pre><pre class="alt"> <span id="hvzpftn" class="kwrd">local</span> Event = Self.mEventTable[ EventName ]</pre><pre> </pre><pre class="alt"> <span id="hvzpftn" class="kwrd">if</span> not Event then</pre><pre> <span id="hvzpftn" class="kwrd">return</span> false</pre><pre class="alt"> <span id="hvzpftn" class="kwrd">end</span></pre><pre> </pre><pre class="alt"> -- 闇瑕侀亶鍘嗕笅map, 鍙兘鏈変簨浠跺悕瀛樺湪, 浣嗘槸娌℃湁浠諱綍鍥炶皟鐨?/pre><pre> <span id="hvzpftn" class="kwrd">for</span> Object,ObjectFunc <span id="hvzpftn" class="kwrd">in</span> pairs( Event ) do</pre><pre class="alt"> </pre><pre> <span id="hvzpftn" class="kwrd">for</span> Func, _ <span id="hvzpftn" class="kwrd">in</span> pairs( ObjectFunc ) do</pre><pre class="alt"> -- 灞呯劧鏈変竴涓?/pre><pre> <span id="hvzpftn" class="kwrd">return</span> true</pre><pre class="alt"> <span id="hvzpftn" class="kwrd">end</span></pre><pre> </pre><pre class="alt"> <span id="hvzpftn" class="kwrd">end</span></pre><pre> </pre><pre class="alt"> </pre><pre> <span id="hvzpftn" class="kwrd">return</span> false</pre><pre class="alt"> </pre><pre><span id="hvzpftn" class="kwrd">end</span></pre><pre class="alt"> </pre><pre>-- 娓呴櫎</pre><pre class="alt"><span id="hvzpftn" class="kwrd">function</span> Remove( Self, EventName, Func, Object )</pre><pre> </pre><pre class="alt"> assert( Func )</pre><pre> </pre><pre class="alt"> <span id="hvzpftn" class="kwrd">local</span> Event = Self.mEventTable[ EventName ]</pre><pre> </pre><pre class="alt"> <span id="hvzpftn" class="kwrd">if</span> not Event then</pre><pre> <span id="hvzpftn" class="kwrd">return</span></pre><pre class="alt"> <span id="hvzpftn" class="kwrd">end</span></pre><pre> </pre><pre class="alt"> <span id="hvzpftn" class="kwrd">if</span> not Object then</pre><pre> Object = <span id="hvzpftn" class="str">"_StaticFunc"</span></pre><pre class="alt"> <span id="hvzpftn" class="kwrd">end</span></pre><pre> </pre><pre class="alt"> </pre><pre> <span id="hvzpftn" class="kwrd">local</span> ObjectEvent = Event[Object]</pre><pre class="alt"> </pre><pre> <span id="hvzpftn" class="kwrd">if</span> not ObjectEvent then</pre><pre class="alt"> <span id="hvzpftn" class="kwrd">return</span></pre><pre> <span id="hvzpftn" class="kwrd">end</span></pre><pre class="alt"> </pre><pre> ObjectEvent[Func] = nil</pre><pre class="alt"> </pre><pre> </pre><pre class="alt"><span id="hvzpftn" class="kwrd">end</span></pre><pre> </pre><pre class="alt">-- 娓呴櫎瀵硅薄鐨勬墍鏈夊洖璋?/pre><pre><span id="hvzpftn" class="kwrd">function</span> RemoveObjectAllFunc( Self, EventName, Object )</pre><pre class="alt"> </pre><pre> assert( Object )</pre><pre class="alt"> </pre><pre> <span id="hvzpftn" class="kwrd">local</span> Event = Self.mEventTable[ EventName ]</pre><pre class="alt"> </pre><pre> <span id="hvzpftn" class="kwrd">if</span> not Event then</pre><pre class="alt"> <span id="hvzpftn" class="kwrd">return</span></pre><pre> <span id="hvzpftn" class="kwrd">end</span></pre><pre class="alt"> </pre><pre> Event[Object] = nil</pre><pre class="alt"> </pre><pre><span id="hvzpftn" class="kwrd">end</span></pre><pre class="alt"> </pre></div> <style type="text/css">.csharpcode, .csharpcode pre { font-size: small; color: black; font-family: consolas, "Courier New", courier, monospace; background-color: #ffffff; /*white-space: pre;*/ } .csharpcode pre { margin: 0em; } .csharpcode .rem { color: #008000; } .csharpcode .kwrd { color: #0000ff; } .csharpcode .str { color: #006080; } .csharpcode .op { color: #0000c0; } .csharpcode .preproc { color: #cc6633; } .csharpcode .asp { background-color: #ffff00; } .csharpcode .html { color: #800000; } .csharpcode .attr { color: #ff0000; } .csharpcode .alt { background-color: #f4f4f4; width: 100%; margin: 0em; } .csharpcode .lnum { color: #606060; } </style> <p>榪欓噷娉ㄦ剰涓? 鎴戞槸灝咵ventDispatcher.lua鏀劇疆鍦–ore鐩綍涓? 鍥犳闇瑕佷嬌鐢╮equire 鈥淐ore.EventDispatcher鈥濊繘琛岃皟鐢?/p> <p>浣跨敤鐢ㄤ緥</p> <p> </p> <div id="hvzpftn" class="csharpcode"><pre class="alt"> <span id="hvzpftn" class="kwrd">local</span> EventDispatcher = require <span id="hvzpftn" class="str">'Core.EventDispatcher'</span></pre><pre> </pre><pre class="alt"> <span id="hvzpftn" class="kwrd">local</span> E = EventDispatcher.New()</pre><pre> </pre><pre class="alt"> </pre><pre> E:Add( <span id="hvzpftn" class="str">"a"</span>, <span id="hvzpftn" class="kwrd">function</span>( a, b ) print( a, b ) <span id="hvzpftn" class="kwrd">end</span> )</pre><pre class="alt"> </pre><pre> <span id="hvzpftn" class="kwrd">local</span> Func = <span id="hvzpftn" class="kwrd">function</span>( a ) print( a ) <span id="hvzpftn" class="kwrd">end</span> </pre><pre class="alt"> E:Add( <span id="hvzpftn" class="str">"a"</span>, Func )</pre><pre> </pre><pre class="alt"> </pre><pre> E:Dispatch(<span id="hvzpftn" class="str">"a"</span>, 1, 2 )</pre><pre class="alt"> print( E:Exist(<span id="hvzpftn" class="str">"a"</span>), E:Exist(<span id="hvzpftn" class="str">"b"</span>))</pre><pre> </pre><pre class="alt"> E:Remove(<span id="hvzpftn" class="str">"a"</span>, Func )</pre><pre> </pre><pre class="alt"> E:Dispatch(<span id="hvzpftn" class="str">"a"</span>, 1, 2 )</pre><pre> print( E:Exist(<span id="hvzpftn" class="str">"a"</span>), E:Exist(<span id="hvzpftn" class="str">"b"</span>))</pre></div> <style type="text/css">.csharpcode, .csharpcode pre { font-size: small; color: black; font-family: consolas, "Courier New", courier, monospace; background-color: #ffffff; /*white-space: pre;*/ } .csharpcode pre { margin: 0em; } .csharpcode .rem { color: #008000; } .csharpcode .kwrd { color: #0000ff; } .csharpcode .str { color: #006080; } .csharpcode .op { color: #0000c0; } .csharpcode .preproc { color: #cc6633; } .csharpcode .asp { background-color: #ffff00; } .csharpcode .html { color: #800000; } .csharpcode .attr { color: #ff0000; } .csharpcode .alt { background-color: #f4f4f4; width: 100%; margin: 0em; } .csharpcode .lnum { color: #606060; } </style><img src ="http://m.shnenglu.com/sunicdavy/aggbug/199692.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.shnenglu.com/sunicdavy/" target="_blank">鎴橀瓊灝忕瓚</a> 2013-04-24 15:19 <a href="http://m.shnenglu.com/sunicdavy/archive/2013/04/24/199692.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>Excel涓璙BA杞崲鏂囦歡緙栫爜鍒癠TF-8http://m.shnenglu.com/sunicdavy/archive/2012/09/13/190553.html鎴橀瓊灝忕瓚鎴橀瓊灝忕瓚Thu, 13 Sep 2012 11:43:00 GMThttp://m.shnenglu.com/sunicdavy/archive/2012/09/13/190553.htmlhttp://m.shnenglu.com/sunicdavy/comments/190553.htmlhttp://m.shnenglu.com/sunicdavy/archive/2012/09/13/190553.html#Feedback2http://m.shnenglu.com/sunicdavy/comments/commentRss/190553.htmlhttp://m.shnenglu.com/sunicdavy/services/trackbacks/190553.html緗戜笂鎵句簡寰堝, 鐪熸濂界敤鐨勪唬鐮佷笉澶? 鑷繁鐮旂┒浜嗕笅,鍐欎笅渚嬪瓙澶囦喚

 

Private Sub ConvFile(InputFile As String, OutputFile As String)
 
    Dim ReadStream As Object
    Set ReadStream = CreateObject("ADODB.Stream")
    
    Dim FileContent As String
    
    With ReadStream
        .Type = 2               'adTypeText
        .Charset = "UNICODE"
        .Open
        .LoadFromFile InputFile
        FileContent = .ReadText
        .Close
        
    End With
    
    Set ReadStream = Nothing
    
    
    
    Dim WriteStream As Object
    Set WriteStream = CreateObject("ADODB.Stream")
       
    
    With WriteStream
        .Type = 2               'adTypeText
        .Charset = "UTF-8"
        .Open
        .WriteText FileContent
        .SaveToFile OutputFile, 2  'adSaveCreateOverWrite
        
        .Flush
        .Close
        
    End With
    
    Set WriteStream = Nothing
 
    
End Sub

 

涓婂崐鎴槸璇誨彇鏂囦歡, 涓嬪崐鎴槸鍐欏叆鏂囦歡, 闇瑕佽漿鎹笉鍚屾牸寮? 璇瘋嚜琛屾洿鎹?/p>

]]>
Linux鏈嶅姟鑷姩瀹夎鍗歌澆閮ㄧ講鑴氭湰http://m.shnenglu.com/sunicdavy/archive/2012/04/12/171026.html鎴橀瓊灝忕瓚鎴橀瓊灝忕瓚Thu, 12 Apr 2012 01:33:00 GMThttp://m.shnenglu.com/sunicdavy/archive/2012/04/12/171026.htmlhttp://m.shnenglu.com/sunicdavy/comments/171026.htmlhttp://m.shnenglu.com/sunicdavy/archive/2012/04/12/171026.html#Feedback0http://m.shnenglu.com/sunicdavy/comments/commentRss/171026.htmlhttp://m.shnenglu.com/sunicdavy/services/trackbacks/171026.html#!/bin/bash # chkconfig: 3 3 1 # description: svclauncher

ServicePath=/usr/local/bin

ServiceList=(
"wkcenterd --toc /home/davy/dev/kaze/Config/CenterService.toc --logfile /tmp/centerd.log"
"wkagentd --toc /home/davy/dev/kaze/Config/AgentService.toc --logfile /tmp/agentd.log"
)

StartAll()
{
    for((i = 0;i<${#ServiceList[*]};i=i+1))
    do

     echo "start:" $ServicePath/${ServiceList[i]}
     $ServicePath/${ServiceList[i]} > /dev/null &

    done
}

StopAll()
{
    for((i = 0;i<${#ServiceList[*]};i=i+1))
    do

     echo "stop:" $ServicePath/${ServiceList[i]}
     svcname=`echo ${ServiceList[i]} | awk '{print $1}'`
     killall $svcname > /dev/null

    done
}

RestartAll()
{
    StopAll
    StartAll
}


InstallService()
{
    svcname=`basename $0`
    chmod +x $svcname
    cp $svcname /etc/init.d
    ln /etc/init.d/$svcname /etc/rc3.d/S03$svcname
    ln /etc/init.d/$svcname /etc/rc0.d/K03$svcname
    chkconfig --add $svcname
    chkconfig $svcname on
    chkconfig --list | grep $svcname
}

UninstallService()
{
    svcname=`basename $0`
    chkconfig --del $svcname
    rm -f /etc/init.d/$svcname
    rm -f /etc/rc3.d/S03$svcname
    rm -f /etc/rc3.d/K03$svcname
}



case "$1" in
    start)
    StartAll
    ;;
    stop)
    StopAll
    ;;
    restart)
    RestartAll
    ;;
    install)
    InstallService
    ;;
    uninstall)
    UninstallService
    ;;
    *)
           echo "Usage: service $EXEC {install|start|stop|restart|uninst}"
       exit 1
esac
 
exit $? 



]]>luabind瀹炵幇lua涓殑鍙栧璞″ぇ灝忓姛鑳?/title><link>http://m.shnenglu.com/sunicdavy/archive/2012/03/27/169178.html</link><dc:creator>鎴橀瓊灝忕瓚</dc:creator><author>鎴橀瓊灝忕瓚</author><pubDate>Tue, 27 Mar 2012 09:36:00 GMT</pubDate><guid>http://m.shnenglu.com/sunicdavy/archive/2012/03/27/169178.html</guid><wfw:comment>http://m.shnenglu.com/sunicdavy/comments/169178.html</wfw:comment><comments>http://m.shnenglu.com/sunicdavy/archive/2012/03/27/169178.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.shnenglu.com/sunicdavy/comments/commentRss/169178.html</wfw:commentRss><trackback:ping>http://m.shnenglu.com/sunicdavy/services/trackbacks/169178.html</trackback:ping><description><![CDATA[<p>鍦╨ua涓? #鎿嶄綔絎︾敤浜庤幏鍙栧璞″ぇ灝? 瀵逛簬table鏉ヨ, 鑾峰彇鐨勬槸table鍏冪礌涓暟, 瀵逛簬瀛楃涓叉潵璇磋幏鍙栫殑鏄瓧絎︿覆闀垮害</p> <p>鍙﹀涓縐嶈幏鍙栨柟娉曟槸table.getn(obj), 浣嗘槸榪欎釜鏂規硶宸茬粡鏍囪涓哄簾闄や簡, 灝介噺浣跨敤閫氱敤涓旂畝媧佺殑#鎿嶄綔絎?/p> <p> </p> <p>浣跨敤lua api瀹炵幇姝ゅ姛鑳藉氨闇瑕佺敤鍒發ua_objlen( ),浣嗘槸榪欎釜鍔熻兘鏈湪luabind涓彁渚?鎵浠ユ垜浠『鎵嬫坊鍔犱竴涓?/p> <p>棣栧厛鎵懼埌luabind婧愮爜鐨刼bject.hpp涓彇瀵硅薄綾誨瀷鐨則ype鍑芥暟,鍦ㄥ叾涓嬫坊鍔犱互涓嬩唬鐮?/p> <p> </p><pre style="border-bottom: #cecece 1px solid; border-left: #cecece 1px solid; padding-bottom: 5px; background-color: #fbfbfb; min-height: 40px; padding-left: 5px; width: 650px; padding-right: 5px; overflow: auto; border-top: #cecece 1px solid; border-right: #cecece 1px solid; padding-top: 5px"><pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px"> 1: <span style="color: #0000ff">template</span><<span style="color: #0000ff">class</span> ValueWrapper></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px"> 2: <span style="color: #0000ff">inline</span> <span style="color: #0000ff">int</span> obj_size(ValueWrapper <span style="color: #0000ff">const</span>& value)</pre><pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px"> 3: {</pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px"> 4: lua_State* interpreter = value_wrapper_traits<ValueWrapper>::interpreter(</pre><pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px"> 5: value</pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px"> 6: );</pre><pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px"> 7: </pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px"> 8: value_wrapper_traits<ValueWrapper>::unwrap(interpreter, value);</pre><pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px"> 9: detail::stack_pop pop(interpreter, 1);</pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px"> 10: <span style="color: #0000ff">return</span> lua_objlen(interpreter, -1);</pre><pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px"> 11: }</pre><p> </p></pre> 閲嶆柊緙栬瘧浣犵殑浠g爜, 灝卞彲浠ヨ繖鏍蜂嬌鐢╨uabind::obj_size( obj ) 鑾峰彇瀵硅薄澶у皬浜?img src ="http://m.shnenglu.com/sunicdavy/aggbug/169178.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.shnenglu.com/sunicdavy/" target="_blank">鎴橀瓊灝忕瓚</a> 2012-03-27 17:36 <a href="http://m.shnenglu.com/sunicdavy/archive/2012/03/27/169178.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>luabind浣跨敤coroutine鏃剁殑涓澶勫杽鎰忔彁紺哄鑷寸殑BUGhttp://m.shnenglu.com/sunicdavy/archive/2012/03/27/169110.html鎴橀瓊灝忕瓚鎴橀瓊灝忕瓚Tue, 27 Mar 2012 02:38:00 GMThttp://m.shnenglu.com/sunicdavy/archive/2012/03/27/169110.htmlhttp://m.shnenglu.com/sunicdavy/comments/169110.htmlhttp://m.shnenglu.com/sunicdavy/archive/2012/03/27/169110.html#Feedback2http://m.shnenglu.com/sunicdavy/comments/commentRss/169110.htmlhttp://m.shnenglu.com/sunicdavy/services/trackbacks/169110.html浠ヤ笅浠g爜浣跨敤luabind榪涜lua鐨刢oroutine嫻嬭瘯

   1: void ScriptManagedChannel::OnServiceInitialize()
   2: {    
   3:     try
   4:     {        
   5:         mThread = lua_newthread( GScriptScriptContext->GetVM() );
   6:  
   7:         luabind::resume_function<void>( mThread, "ScriptMain", this );
   8:  
   9:         Resume();
  10:     }
  11:     catch (std::exception& e)
  12:     {
  13:         const char* ErrorMsg = lua_tostring( GScriptScriptContext->GetVM(), -1 );            
  14:         printf("%s\n", e.what() );
  15:     }
  16:  
  17:     
  18: }
  19:  
  20: void ScriptManagedChannel::Resume( )
  21: {
  22:     luabind::resume<void>( mThread );
  23: }
  24:  
  25: void ScriptManagedChannel::StopTest( )
  26: {
  27:     lua_yield( mThread, 0 );
  28: }
  29:  
  30:  

浠g爜涓? mThread綾誨瀷涓簂ua_State*綾誨瀷

GScriptScriptContext->GetVM()鏄姞杞戒簡浠g爜鐨刲ua_State*

StopTest涓烘敞鍐屼負ScriptManagedChannel綾繪垚鍛樺嚱鏁板埌lua涓殑瀹氫箟

鎺ヤ笅鏉ョ湅lua绔殑嫻嬭瘯浠g爜:

   1: function ScriptMain( Channel )
   2:  
   3:     
   4:     for i = 1, 5 do
   5:     
   6:     print("done", i)
   7:     
   8:     Channel:StopTest( )
   9:     
  10:     
  11:     
  12:     end
  13: end

鍒氬紑濮?鍦ㄦ祴璇曚唬鐮佹椂, lua涓湁涓墜璇岄犳垚鐨勯敊璇? 瀵艱嚧C++浠g爜榪愯鍒扮7琛屾椂寮瑰嚭assert

浣嶄簬:luabind-0.9.1\luabind\detail\call_function.hpp 絎?64琛?瀵瑰簲浠ヤ笅浠g爜絎?3琛?/p>

   1: ~proxy_function_void_caller()
   2: {
   3:     if (m_called) return;
   4:  
   5:     m_called = true;
   6:     lua_State* L = m_state;
   7:  
   8:     int top = lua_gettop(L);
   9:  
  10:     push_args_from_tuple<1>::apply(L, m_args);
  11:     if (m_fun(L, boost::tuples::length<Tuple>::value, 0))
  12:     {
  13:         assert(lua_gettop(L) == top - m_params + 1);
  14:  
  15: NO_EXCEPTIONS
  16:         throw luabind::error(L);
  17: #else
  18:         error_callback_fun e = get_error_callback();
  19:         if (e) e(L);
  20:     
  21:         assert(0 && "the lua function threw an error and exceptions are disabled."
  22:                 " If you want to handle the error you can use luabind::set_error_callback()");
  23:         std::terminate();
  24: #endif
  25:     }
  26:     // pops the return values from the function call
  27:     stack_pop pop(L, lua_gettop(L) - top + m_params);
  28: }

11琛屼唬鐮佷腑璋冪敤鐨勬槸lua_resume, 榪斿洖鐨勬槸榪愯閿欒, 浣嗘槸琚?3琛岀殑assert鎸′綇浜? 鏃犳硶閫氳繃絎?6琛屾姏鍑哄紓甯歌澶栭潰鎹曡幏.

鍥犳,灝濊瘯娉ㄩ噴絎?3琛?/strong>, 鍐嶆祴璇? 鍙互鍦╨ua鎶涘嚭閿欒鍚? 鍦ㄦ爤欏舵崟鑾峰埌coroutine鍑芥暟resume鏃舵姤鍑虹殑閿欒淇℃伅.闂瑙e喅

 

瀵逛簬lua鐨刢oroutine, 緗戜笂璧勬枡涓嶅, 榪欓噷鏈変竴綃囨瘮杈冭緇嗙殑浠g爜

鎴戞瘮杈冪枒鎯戠殑鏄? 鏈夋病鏈夊繀瑕佸皢浠g爜鍦╠ofile鎴栬卍obuffer鏃? 蹇呴』浼犲叆newthread鍑虹殑state? 濡傛灉榪樻槸浼犲叆鍘熷鐨剆tate浼氭湁浠涔堝獎鍝?

嬈㈣繋鍚勪綅鏈夋緇忛獙鐨勮璁?/p>

]]>
涓簂ua鏋勫緩娌欑洅(SandBox)鐜http://m.shnenglu.com/sunicdavy/archive/2012/03/02/166948.html鎴橀瓊灝忕瓚鎴橀瓊灝忕瓚Fri, 02 Mar 2012 01:40:00 GMThttp://m.shnenglu.com/sunicdavy/archive/2012/03/02/166948.htmlhttp://m.shnenglu.com/sunicdavy/comments/166948.htmlhttp://m.shnenglu.com/sunicdavy/archive/2012/03/02/166948.html#Feedback0http://m.shnenglu.com/sunicdavy/comments/commentRss/166948.htmlhttp://m.shnenglu.com/sunicdavy/services/trackbacks/166948.html鎴戜滑鏈夋椂闇瑕侀檺鍒秎ua浠g爜鐨勮繍琛岀幆澧?鎴栬呮槸璁╀嬌鐢ㄨ呬笉鑳借闂埌lua鐨勪竴浜涘叏灞鍑芥暟.lua璇█鏈韓娌℃湁綾諱技浜嶤++, C#, Java閭f牱鐨勬垚鍛樿闂帶鍒? 浣唋ua鎻愪緵浜唖etfenv鍑芥暟鍙互寰堢伒媧葷殑澶勭悊鍚勭被鏉冮檺闂

搴熻瘽涓嶅璇? 鐪嬩唬鐮?/p>

   1:  -- 鍒涘緩娌欑洅
   2:  function SpawnSandBox( )
   3:   
   4:      local SandBoxGlobals = {}
   5:      
   6:      -- 鍩虹鍑芥暟娣誨姞
   7:      SandBoxGlobals.print             = print
   8:      SandBoxGlobals.table             = table
   9:      SandBoxGlobals.string             = string     
  10:      SandBoxGlobals.math               = math 
  11:      SandBoxGlobals.assert             = assert 
  12:      SandBoxGlobals.getmetatable    = getmetatable 
  13:      SandBoxGlobals.ipairs             = ipairs 
  14:      SandBoxGlobals.pairs             = pairs 
  15:      SandBoxGlobals.pcall             = pcall 
  16:      SandBoxGlobals.setmetatable    = setmetatable 
  17:      SandBoxGlobals.tostring        = tostring 
  18:      SandBoxGlobals.tonumber        = tonumber 
  19:      SandBoxGlobals.type            = type 
  20:      SandBoxGlobals.unpack             = unpack 
  21:      SandBoxGlobals.collectgarbage     = collectgarbage
  22:      SandBoxGlobals._G                = SandBoxGlobals
  23:      
  24:      return SandBoxGlobals
  25:  end
  26:   
  27:  -- 鍦ㄦ矙鐩掑唴鎵ц鑴氭湰, 鍑洪敊鏃惰繑鍥為敊璇? nil琛ㄧず姝g‘
  28:  function ExecuteInSandBox( SandBox, Script )
  29:      
  30:      local ScriptFunc, CompileError = loadstring( Script )
  31:      
  32:      if CompileError then
  33:          return CompileError
  34:      end
  35:      
  36:      setfenv( ScriptFunc, SandBox )
  37:      
  38:      local Result, RuntimeError = pcall( ScriptFunc )
  39:      if RuntimeError then
  40:          return RuntimeError
  41:      end
  42:      
  43:      return nil
  44:  end
  45:   
  46:  function ProtectedFunction( )
  47:      print("protected func")
  48:  end
  49:   
  50:   
  51:  local SandBox = SpawnSandBox( )
  52:   
  53:   
  54:  print ( "Response=", ExecuteInSandBox( SandBox, "table.foreach( _G, print )" ) )
  55:   
  56:  print ( "Response=", ExecuteInSandBox( SandBox, "ProtectedFunction()" ) )
  57:   
  58:  SandBox.ProtectedFunction = ProtectedFunction
  59:   
  60:  print ( "Response=", ExecuteInSandBox( SandBox, "ProtectedFunction()" ) )

 

54琛屾墽琛岀粨鏋滄槸

 

   1:  _G    table: 00421258
   2:  string    table: 00421050
   3:  pairs    function: 00567F58
   4:  collectgarbage    function: 005675F0
   5:  unpack    function: 004217E8
   6:  assert    function: 005675B0
   7:  print    function: 00567830
   8:  ipairs    function: 00567F28
   9:  type    function: 004217A8
  10:  tonumber    function: 00421768
  11:  tostring    function: 00421788
  12:  table    table: 00420DA8
  13:  math    table: 004210C8
  14:  setmetatable    function: 00421748
  15:  getmetatable    function: 00567710
  16:  pcall    function: 005677F0
  17:  Response=    nil
 
54琛岀敱浜庢病鏈夋敞鍐岃繖涓叏灞鍑芥暟, 鍥犳鏃犳硶璁塊棶
Response=    [string "ProtectedFunction()"]:1: attempt to call global 'ProtectedFunction' (a nil value)
 
58琛屽湪鍏ㄥ眬鐜涓姞涓婁簡榪欎釜鍑芥暟,鍥犳鍦?0琛岃闂甯?/div>
protected func
Response=    nil
 


]]>Linux涓嬪皢ldd鎵撳嵃鐨勪緷璧栧垪琛ㄦ嫹璐濆埌鎸囧畾鐩綍http://m.shnenglu.com/sunicdavy/archive/2012/02/29/166791.html鎴橀瓊灝忕瓚鎴橀瓊灝忕瓚Wed, 29 Feb 2012 08:05:00 GMThttp://m.shnenglu.com/sunicdavy/archive/2012/02/29/166791.htmlhttp://m.shnenglu.com/sunicdavy/comments/166791.htmlhttp://m.shnenglu.com/sunicdavy/archive/2012/02/29/166791.html#Feedback0http://m.shnenglu.com/sunicdavy/comments/commentRss/166791.htmlhttp://m.shnenglu.com/sunicdavy/services/trackbacks/166791.htmlLinux涓嬬殑ldd鍛戒護鍙互鏌ョ湅涓涓彲鎵ц鏂囦歡/鍏變韓搴?闈欐佸簱鐨勪緷璧? 浣嗘槸鎯沖緱鍒拌繖浜涗緷璧栨枃浠? 蹇呴』鎵嬪姩鍘繪壘,闈炲父楹葷儲

榪欓噷鏄竴涓猄hell鍙互灝嗕緷璧栧垪琛ㄤ腑鐨勬枃浠舵嫹璐濆埌鎸囧畾鐩綍

deplist=$( ldd $1 | awk '{if (match($3,"/")){ print $3}}' )
cp $deplist $2
浠g爜瑙i噴: ldd瀵煎嚭鍒楄〃, 榪欎釜鍒楄〃鎵撳嵃鍑烘潵寰堜笐

linux-gate.so.1 =>  (0x00ed2000)
    liblog4cpp.so.4 => /usr/local/lib/liblog4cpp.so.4 (0x00657000)
    libprotobuf.so.7 => /usr/local/lib/libprotobuf.so.7 (0x00360000)
    libboost_filesystem.so.1.48.0 => /usr/local/lib/libboost_filesystem.so.1.48.0 (0x00a9a000)
    libboost_program_options.so.1.48.0 => /usr/local/lib/libboost_program_options.so.1.48.0 (0x00110000)
    libboost_system.so.1.48.0 => /usr/local/lib/libboost_system.so.1.48.0 (0x00a85000)
    libboost_thread.so.1.48.0 => /usr/local/lib/libboost_thread.so.1.48.0 (0x00179000)
    libunwind-x86.so.7 => /usr/lib/libunwind-x86.so.7 (0x00821000)
    libluabindd.so.0.9.0 => /usr/local/lib/libluabindd.so.0.9.0 (0x00bb3000)
    libmysqlpp.so.3 => /usr/local/lib/libmysqlpp.so.3 (0x00de5000)
    libstdc++.so.6 => /usr/lib/i386-linux-gnu/libstdc++.so.6 (0x001a9000)
    libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0x00782000)
    libgcc_s.so.1 => /lib/i386-linux-gnu/libgcc_s.so.1 (0x00aea000)
    libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0x00447000)
    libpthread.so.0 => /lib/i386-linux-gnu/libpthread.so.0 (0x00abd000)
    librt.so.1 => /lib/i386-linux-gnu/librt.so.1 (0x00193000)
    libnsl.so.1 => /lib/i386-linux-gnu/libnsl.so.1 (0x00294000)
    libunwind.so.7 => /usr/lib/libunwind.so.7 (0x002ab000)
    libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0x00e8a000)
    libmysqlclient_r.so.16 => /usr/lib/libmysqlclient_r.so.16 (0x0083b000)
    /lib/ld-linux.so.2 (0x00608000)
    libz.so.1 => /lib/i386-linux-gnu/libz.so.1 (0x002c0000)

 

鎴戜滑鍙戠幇絎竴琛岀殑so娌℃湁瀵瑰簲鐨勫簱鍦板潃, 鍥犳鎴戜滑浣跨敤awk鐨勮剼鏈姛鑳?鍒ゆ柇絎笁涓弬鏁?涔熷氨鏄?>涔嬪悗鐨勮礬寰勫繀欏誨寘鍚?

涔嬪悗灝嗙涓琛岀殑杈撳嚭閲嶅畾鍚戝埌鍙橀噺涓? 鍐嶄嬌鐢╟p鎸囦護浠庡垪琛ㄦ嫹璐濆埌鎸囧畾鐩綍



]]>
浣跨敤鎵瑰鐞嗕負protocbuffer鐨勮緭鍑篶++鏂囦歡娣誨姞棰勭紪璇戝ごhttp://m.shnenglu.com/sunicdavy/archive/2011/11/02/159518.html鎴橀瓊灝忕瓚鎴橀瓊灝忕瓚Wed, 02 Nov 2011 09:32:00 GMThttp://m.shnenglu.com/sunicdavy/archive/2011/11/02/159518.htmlhttp://m.shnenglu.com/sunicdavy/comments/159518.htmlhttp://m.shnenglu.com/sunicdavy/archive/2011/11/02/159518.html#Feedback1http://m.shnenglu.com/sunicdavy/comments/commentRss/159518.htmlhttp://m.shnenglu.com/sunicdavy/services/trackbacks/159518.html浣跨敤ProtocolBuffer鐨勭紪璇戠▼搴弍rotoc鍙互灝?proto鐢熸垚*.pb.cc鐨凜++浠g爜鏂囦歡. 浣嗘槸鍦ㄥ甫鏈夐緙栬瘧澶寸殑宸ョ▼閲? 灝辯粡甯擱渶瑕佹墜鍔ㄦ坊鍔犵被浼約tdafx.h鐨勫寘鍚? 榪欓噷浣跨敤鎵瑰鐞嗘潵瀹屾垚榪欎竴榪囩▼:

BuildProtoCC.bat

@echo off

set protofile=%1%.proto
set output_cc=%1%.pb.cc

"protoc.exe" %protofile% --cpp_out .
@echo 浣跨敤%protofile%鐢熸垚%output_cc%

if exist "pchheader.txt" goto 鍚堝茍棰勭紪璇戝ご else echo pchheader.txt NOT EXIST

:鍚堝茍棰勭紪璇戝ご
@echo 灝濊瘯鍒犻櫎浠ュ墠鐨勪腑闂存枃浠?br>del *.pched
@echo 鍚堝茍緙栬瘧澶存枃浠秔chheader.txt鍒扮敓鎴?output_cc%
copy pchheader.txt+"%output_cc%" "%output_cc%.pched" /y
@echo 絳夊緟protoc.exe緇撴潫
@ping -n 2 127.1>nul
echo 娓呯悊鏂囦歡
del "%output_cc%"
ren "%output_cc%.pched" "%output_cc%"

 

榪欐鎵瑰鐞嗚繖鏍蜂嬌鐢?

鍋囪浣犳湁涓涓彨login.proto鏂囦歡鍜屾壒澶勭悊鏀懼湪涓璧?

鍦ㄥ悓涓鐩綍鍐嶆斁緗竴涓猵chheader.txt鏂囦歡,騫跺湪閲岄潰鍐欏叆#include "stdafx.h鈥?

璋冪敤涓涓嬫壒澶勭悊

call BuildProtoCC.bat login

娉ㄦ剰login涓嶈兘甯﹀悗緙

灝嗕嬌鐢╬rotoc.exe鐢熸垚login.pb.cc鍜宭ogin.pb.h 鐒跺悗浣跨敤鎵瑰鐞嗗悎騫舵枃浠跺姛鑳借嚜鍔ㄥ悎騫墮緙栬瘧澶?

]]>
protocolbuffer娣誨姞ActionScript3鏀寔http://m.shnenglu.com/sunicdavy/archive/2011/08/10/152995.html鎴橀瓊灝忕瓚鎴橀瓊灝忕瓚Wed, 10 Aug 2011 14:00:00 GMThttp://m.shnenglu.com/sunicdavy/archive/2011/08/10/152995.htmlhttp://m.shnenglu.com/sunicdavy/comments/152995.htmlhttp://m.shnenglu.com/sunicdavy/archive/2011/08/10/152995.html#Feedback0http://m.shnenglu.com/sunicdavy/comments/commentRss/152995.htmlhttp://m.shnenglu.com/sunicdavy/services/trackbacks/152995.htmlprotocolbuffer榛樿鏀寔java, python 鍜宑++,鍏朵粬鐨勮璦闇瑕佽嚜宸辯紪鍐欎唬鐮佺敓鎴愬櫒浠栬璦鐨勪唬鐮?

涓嶈繃瀹樼綉涔熸彁鍒拌繃ActionScript3鐨勬敮鎸?鐐瑰嚮鐪?a >榪欓噷

protobuf-actionscript3鍖呮嫭ActionScript3鐨勫簭鍒楀彿鍙婂弽搴忓垪鍖栫殑as婧愮爜.浠ュ強protoc鐨刟s3浠g爜鐢熸垚鍣ㄧ殑C++浠g爜

鍙﹀, protobuf-actionscript3榪橀渶瑕佷竴涓姞瀵嗗簱as3crypto鏀寔,闇瑕佷竴騫朵笅杞?/p>

褰撶劧, protobuf 搴撲篃鏄渶閲嶈鐨?

涓嬮潰璇存槑濡備綍緙栬瘧鍑烘敮鎸乤s3鐨刾rotoc浠g爜鐢熸垚鍣?

 

1. 灝唒rotobuf-actionscript3搴撲腑compiler\as3鐩綍鎷瘋礉鍒皃rotobuf搴撶殑src\google\protobuf\compiler涓?鐩綍緇撴瀯濡備笅:

as3\
    cpp\
    java\
    python\
    code_generator.cc
    command_line_interface.cc

...

 

2.鎵撳紑protobuf宸ョ▼涓殑sln, 鍦╨ibprotoc娣誨姞鍒氭墠娣誨姞鐨刟s3鐩綍涓嬬殑鎵鏈夋枃浠?/p>

3. 鍦╬rotoc宸ョ▼鐨刴ain.cc涓坊鍔?/p>

  google::protobuf::compiler::as3::As3Generator as3_generator;
  cli.RegisterGenerator("--as3_out", &as3_generator,
      "Generate ActionScript source file."); 

4. 鎵撳紑as3_file.h

娉ㄩ噴鎺変互涓嬩唬鐮?/p>

namespace protobuf {
  class FileDescriptor;        // descriptor.h
  namespace io {
    class Printer;             // printer.h
  }
  namespace compiler {
    class OutputDirectory;     // code_generator.h
  }
}

鍖呭惈鍐呮坊鍔?/p>

#include <google/protobuf/stubs/common.h>
#include <google/protobuf/compiler/code_generator.h>
#include <google/protobuf/io/printer.h>
5. 緙栬瘧鍑簆rotoc.exe
6. 鍑嗗proto鏂囦歡, 浣跨敤protoc.exe浣跨敤綾諱技CPP鐢熸垚鐨勬柟寮忚繘琛岀敓鎴?/pre>
7. 灝唒rotobuf-actionscript閲岀殑as3-lib鍙婁笅杞藉ソ鐨勫姞瀵嗙殑swc鏁村悎鍒拌嚜宸辯殑flash宸ョ▼鍗沖彲寮濮嬩嬌鐢?/pre>

]]>灝忚瘯Squirrel鏉鵑紶鑴氭湰鐨勮繙紼嬭皟璇曞姛鑳?/title><link>http://m.shnenglu.com/sunicdavy/archive/2011/05/14/146376.html</link><dc:creator>鎴橀瓊灝忕瓚</dc:creator><author>鎴橀瓊灝忕瓚</author><pubDate>Sat, 14 May 2011 09:42:00 GMT</pubDate><guid>http://m.shnenglu.com/sunicdavy/archive/2011/05/14/146376.html</guid><wfw:comment>http://m.shnenglu.com/sunicdavy/comments/146376.html</wfw:comment><comments>http://m.shnenglu.com/sunicdavy/archive/2011/05/14/146376.html#Feedback</comments><slash:comments>5</slash:comments><wfw:commentRss>http://m.shnenglu.com/sunicdavy/comments/commentRss/146376.html</wfw:commentRss><trackback:ping>http://m.shnenglu.com/sunicdavy/services/trackbacks/146376.html</trackback:ping><description><![CDATA[<p>絳変簡澶у崐騫?<a >鏉鵑紶鑴氭湰</a>緇堜簬閲婂嚭浜?a >3.0紼沖畾鐗堟湰</a></p> <p>鏉鵑紶鑴氭湰鍙互璇存槸Lua鐨勮秴綰у寮虹増,浣滆呭湪Crysis欏圭洰浣跨敤Lua澶氬勾,娣辯煡Lua鐨勪紭緙虹偣.涔嬪悗鑷繁緙栧啓浜嗘澗榧犺剼鏈潵瑙e喅璇稿class,attribute,delegation,鏇村己澶х殑thread,exception絳夌瓑鍔熻兘. </p> <p>鏉鵑紶鑴氭湰鏈韓瀵筗indows寮鍙戜漢鍛樻瀬涓虹収欏?絎笁鏂瑰簱鍙皳涓板瘜,榪滅▼璋冭瘯,浠g爜鍔犺壊鍙婅娉曟鏌ラ兘鍙互鐩存帴鍦╒S2008鐨処DE涓繘琛?</p> <p>綆鍗曠殑榪滅▼璋冭瘯鍔熻兘闇瑕佷互涓嬫楠?</p> <p>1. 涓嬭澆<a >鏉鵑紶鑴氭湰3.0鐗堟湰</a></p> <p>2. 鍦?a >鏉鵑紶鑴氭湰Wiki</a>涓笅杞?a >SQDBG榪滅▼璋冭瘯搴?/a></p> <p>3. 灝唖qdbg宸ョ▼鏀懼埌SQUIRREL3涔嬩笅,鎵撳紑SQUIRREL3\squirrel.sln,灝唖qdbg娣誨姞鍒板伐紼?緙栬瘧鎵鏈?/p> <p>4. 鍦ㄨ繖涓猄olution涓?鍒涘緩涓涓猄quirrel鏉鵑紶宸ョ▼</p> <p><a href="http://m.shnenglu.com/images/cppblog_com/sunicdavy/WindowsLiveWriter/Squirrel_F936/image_2.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://m.shnenglu.com/images/cppblog_com/sunicdavy/WindowsLiveWriter/Squirrel_F936/image_thumb.png" width="459" height="96"></a></p> <p>5. 鍦ㄦ柊鍒涘緩鐨勬澗榧犲伐紼嬪睘鎬т腑濡備笅鍥捐緗?/p> <p><a href="http://m.shnenglu.com/images/cppblog_com/sunicdavy/WindowsLiveWriter/Squirrel_F936/image_4.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://m.shnenglu.com/images/cppblog_com/sunicdavy/WindowsLiveWriter/Squirrel_F936/image_thumb_1.png" width="535" height="215"></a>  </p> <p>Interpreter鍏跺疄灝辨槸鍚姩璋冭瘯鍣?涓嶆槸sq.exe)</p> <p>WorkingDirectory 灝辨槸main.nut鎵鍦ㄧ殑鐩綍(瀹樼綉鐨勮礬寰勮緗湁鐐硅瀵?</p> <p>Command Line Options 灝辨槸浼犲叆sqdbg.exe鐨勫懡浠よ鍙傛暟</p> <p>淇敼涓媘ain.nut鏂囦歡,渚嬪:</p> <p>for(local i = 1;i<10;i++)<br>{<br>    print( i );<br>}</p> <p>鍦╬rint璇彞鍓嶆墦涓婃柇鐐?璋冭瘯鏉鵑紶宸ョ▼,鍗沖彲鐪嬪埌璋冭瘯緇撴灉</p> <p><a href="http://m.shnenglu.com/images/cppblog_com/sunicdavy/WindowsLiveWriter/Squirrel_F936/image_8.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://m.shnenglu.com/images/cppblog_com/sunicdavy/WindowsLiveWriter/Squirrel_F936/image_thumb_3.png" width="361" height="180"></a> </p> <p> </p> <p>鏈夊叧浜嶴QDBG澶氭枃浠惰皟璇?</p> <p>SQDBG榛樿鍙兘璋冭瘯1涓枃浠?鏄劇劧鏄釜鐜╁叿,涓嶈兘搴斿娓告垙鍜屽叾浠栭鍩熺殑澶氭枃浠惰皟璇? 鍒嗘瀽浜嗕笅SQDBG鐨勪唬鐮?/p> <div id="hvzpftn" class="csharpcode"><pre class="alt"><span id="hvzpftn" class="lnum"> 1: </span><span id="hvzpftn" class="kwrd">int</span> main(<span id="hvzpftn" class="kwrd">int</span> argc, <span id="hvzpftn" class="kwrd">char</span> *argv[])</pre><pre><span id="hvzpftn" class="lnum"> 2: </span>{</pre><pre class="alt"><span id="hvzpftn" class="lnum"> 3: </span> <span id="hvzpftn" class="kwrd">if</span>(argc < 2){</pre><pre><span id="hvzpftn" class="lnum"> 4: </span> scprintf(_SC(<span id="hvzpftn" class="str">"SQDBG error : no file specified"</span>));</pre><pre class="alt"><span id="hvzpftn" class="lnum"> 5: </span> <span id="hvzpftn" class="kwrd">return</span> -1;</pre><pre><span id="hvzpftn" class="lnum"> 6: </span> }</pre><pre class="alt"><span id="hvzpftn" class="lnum"> 7: </span> </pre><pre><span id="hvzpftn" class="lnum"> 8: </span> HSQUIRRELVM v = sq_open(1024);</pre><pre class="alt"><span id="hvzpftn" class="lnum"> 9: </span> sqstd_seterrorhandlers(v);</pre><pre><span id="hvzpftn" class="lnum"> 10: </span> </pre><pre class="alt"><span id="hvzpftn" class="lnum"> 11: </span> <span id="hvzpftn" class="rem">//!! INITIALIZES THE DEBUGGER ON THE TCP PORT 1234</span></pre><pre><span id="hvzpftn" class="lnum"> 12: </span> <span id="hvzpftn" class="rem">//!! ENABLES AUTOUPDATE</span></pre><pre class="alt"><span id="hvzpftn" class="lnum"> 13: </span> HSQREMOTEDBG rdbg = sq_rdbg_init(v,1234,SQTrue);</pre><pre><span id="hvzpftn" class="lnum"> 14: </span> <span id="hvzpftn" class="kwrd">if</span>(rdbg) {</pre><pre class="alt"><span id="hvzpftn" class="lnum"> 15: </span> </pre><pre><span id="hvzpftn" class="lnum"> 16: </span> <span id="hvzpftn" class="rem">//!! ENABLES DEBUG INFO GENERATION(for the compiler)</span></pre><pre class="alt"><span id="hvzpftn" class="lnum"> 17: </span> sq_enabledebuginfo(v,SQTrue);</pre><pre><span id="hvzpftn" class="lnum"> 18: </span> </pre><pre class="alt"><span id="hvzpftn" class="lnum"> 19: </span> sq_setprintfunc(v,printfunc,errorfunc);</pre><pre><span id="hvzpftn" class="lnum"> 20: </span> </pre><pre class="alt"><span id="hvzpftn" class="lnum"> 21: </span> <span id="hvzpftn" class="rem">//!! SUSPENDS THE APP UNTIL THE DEBUGGER CLIENT CONNECTS</span></pre><pre><span id="hvzpftn" class="lnum"> 22: </span> <span id="hvzpftn" class="kwrd">if</span>(SQ_SUCCEEDED(sq_rdbg_waitforconnections(rdbg))) {</pre><pre class="alt"><span id="hvzpftn" class="lnum"> 23: </span> scprintf(_SC(<span id="hvzpftn" class="str">"connected\n"</span>));</pre><pre><span id="hvzpftn" class="lnum"> 24: </span> </pre><pre class="alt"><span id="hvzpftn" class="lnum"> 25: </span> <span id="hvzpftn" class="kwrd">const</span> SQChar *fname=NULL;</pre><pre><span id="hvzpftn" class="lnum"> 26: </span>#ifdef _UNICODE</pre><pre class="alt"><span id="hvzpftn" class="lnum"> 27: </span> SQChar sTemp[256];</pre><pre><span id="hvzpftn" class="lnum"> 28: </span> mbstowcs(sTemp,argv[1],(<span id="hvzpftn" class="kwrd">int</span>)strlen(argv[1])+1);</pre><pre class="alt"><span id="hvzpftn" class="lnum"> 29: </span> fname=sTemp;</pre><pre><span id="hvzpftn" class="lnum"> 30: </span><span id="hvzpftn" class="preproc">#else</span></pre><pre class="alt"><span id="hvzpftn" class="lnum"> 31: </span> fname=argv[1];</pre><pre><span id="hvzpftn" class="lnum"> 32: </span><span id="hvzpftn" class="preproc">#endif</span> </pre><pre class="alt"><span id="hvzpftn" class="lnum"> 33: </span> <span id="hvzpftn" class="rem">//!!REGISTERS STANDARDS LIBS</span></pre><pre><span id="hvzpftn" class="lnum"> 34: </span> sq_pushroottable(v);</pre><pre class="alt"><span id="hvzpftn" class="lnum"> 35: </span> sqstd_register_bloblib(v);</pre><pre><span id="hvzpftn" class="lnum"> 36: </span> sqstd_register_iolib(v);</pre><pre class="alt"><span id="hvzpftn" class="lnum"> 37: </span> <span id="hvzpftn" class="rem">//!!EXECUTE A SCTIPT</span></pre><pre><span id="hvzpftn" class="lnum"> 38: </span> <span id="hvzpftn" class="kwrd">if</span>(SQ_FAILED(sqstd_dofile(v,fname,SQFalse,SQTrue))) {</pre><pre class="alt"><span id="hvzpftn" class="lnum"> 39: </span> PrintError(v);</pre><pre><span id="hvzpftn" class="lnum"> 40: </span> _getch();</pre><pre class="alt"><span id="hvzpftn" class="lnum"> 41: </span> }</pre><pre><span id="hvzpftn" class="lnum"> 42: </span> }</pre><pre class="alt"><span id="hvzpftn" class="lnum"> 43: </span> <span id="hvzpftn" class="rem">//!! CLEANUP</span></pre><pre><span id="hvzpftn" class="lnum"> 44: </span> sq_rdbg_shutdown(rdbg);</pre><pre class="alt"><span id="hvzpftn" class="lnum"> 45: </span> }</pre><pre><span id="hvzpftn" class="lnum"> 46: </span> <span id="hvzpftn" class="kwrd">else</span> {</pre><pre class="alt"><span id="hvzpftn" class="lnum"> 47: </span> PrintError(v);</pre><pre><span id="hvzpftn" class="lnum"> 48: </span> }</pre><pre class="alt"><span id="hvzpftn" class="lnum"> 49: </span> sq_close(v);</pre></div> <p>鍙戠幇鍐欒繖涓簱鐨勮佸榪樻槸寰堣鐪熺殑,浣跨敤浜唖q_rdbg浣滀負debugger鐨刟pi鍓嶇紑,鎰忓懗鐫榪欎釜搴撲唬鐮佹槸鍙互澶嶇敤鐨?</p> <div id="hvzpftn" class="csharpcode">娉ㄦ剰絎?8琛?</div> <style type="text/css">.csharpcode, .csharpcode pre { font-size: small; color: black; font-family: consolas, "Courier New", courier, monospace; background-color: #ffffff; /*white-space: pre;*/ } .csharpcode pre { margin: 0em; } .csharpcode .rem { color: #008000; } .csharpcode .kwrd { color: #0000ff; } .csharpcode .str { color: #006080; } .csharpcode .op { color: #0000c0; } .csharpcode .preproc { color: #cc6633; } .csharpcode .asp { background-color: #ffff00; } .csharpcode .html { color: #800000; } .csharpcode .attr { color: #ff0000; } .csharpcode .alt { background-color: #f4f4f4; width: 100%; margin: 0em; } .csharpcode .lnum { color: #606060; } </style> <p></p> <p></p> <p> sqstd_dofile(v,fname,SQFalse,SQTrue)</p> <p>榪欏氨鏄疭QDBG鍙兘debug 1涓枃浠剁殑鍘熷洜.</p> <p>濡傛灉闇瑕佸湪欏圭洰涓仛榪滅▼璋冭瘯,鍙渶瑕佸皢榪欏彞浠g爜鎹負宸ョ▼涓姞杞芥墍鏈夎剼鏈殑浠g爜鍜屾敞鍐岀郴緇烝PI浠g爜鍗沖彲</p> <p> </p> <p>褰撶劧,鏈綆鍗曠殑鏂規硶,鐩存帴鍦ㄤ唬鐮侀《绔坊鍔燿ofile寮曠敤鍙﹀鐨勪唬鐮佸嵆鍙?/p><img src ="http://m.shnenglu.com/sunicdavy/aggbug/146376.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.shnenglu.com/sunicdavy/" target="_blank">鎴橀瓊灝忕瓚</a> 2011-05-14 17:42 <a href="http://m.shnenglu.com/sunicdavy/archive/2011/05/14/146376.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>榪瘋尗鐨勬父鎴忚剼鏈夋嫨 Lua, Google V8, Mono鍜?JavaScriptCorehttp://m.shnenglu.com/sunicdavy/archive/2011/05/14/146369.html鎴橀瓊灝忕瓚鎴橀瓊灝忕瓚Sat, 14 May 2011 07:13:00 GMThttp://m.shnenglu.com/sunicdavy/archive/2011/05/14/146369.htmlhttp://m.shnenglu.com/sunicdavy/comments/146369.htmlhttp://m.shnenglu.com/sunicdavy/archive/2011/05/14/146369.html#Feedback24http://m.shnenglu.com/sunicdavy/comments/commentRss/146369.htmlhttp://m.shnenglu.com/sunicdavy/services/trackbacks/146369.html鏈榪戞涓烘父鎴忓紩鎿庨夋嫨涓嬈捐緝濂界殑閫昏緫鑴氭湰鑰屽ご鐤間笉宸?/p>

1. Lua

Lua鐢ㄤ簡5,6騫寸殑鏍峰瓙,浠嶭uaPlus鍒發ua-tinker鍐嶅埌lua_bind. 铏界劧lua鏈韓寰堝皬宸ф柟渚?浣嗘槸鍏朵笉鏀寔闈㈠悜瀵硅薄鐗規?璁╁緢澶氫漢鍦ㄤ嬌鐢ㄦ椂妯℃嫙浜嗗緢澶氶潰鍚戝璞$殑鐗規?浣嗘槸榪欑鍋氭硶鍦ㄨ皟璇曟椂綆鐩存槸鍣╂ⅵ.

鎴戣寰楁父鎴忚剼鏈渶濂芥槸鑳介緙栬瘧鎴恇yte code,璁╃紪璇戝櫒鍦ㄧ紪璇戞湡灝嗗緢澶氱殑bug鏆撮湶鍑烘潵,鑰屼笉鏄儚lua閭f牱.寰堝絀鴻闂敊璇繀欏昏絳夊埌runtime鎵嶈兘鏆撮湶.璁╄皟璇曟晥鐜囧ぇ澶ч檷浣?榪欑偣,mono C#灝辨槸鏋佸ソ鐨勯夋嫨.

2. Mono

鐢變簬Unity鐨勬祦琛?Mono琚甫鍏ユ父鎴忓紑鍙戣呯殑瑙嗙嚎鍐?鍏跺唴緗殑寰堝緋葷粺鑴氭湰閮芥槸鐢–#鍐欐垚,鑰屼笖閫昏緫鑴氭湰鐢–#緙栧啓涔熸槸闈炲父娓呮櫚涓ヨ皚鐨?

鎹Mono鍦╓indows涓嬬紪璇戝紓甯擱夯鐑?鑰屼笖宓屽叆鏂瑰紡涔熸病鏈夊お澶氫緥瀛?鐜板湪榪欏潡涓ラ噸緙轟箯璧勬枡.

3. V8

Google V8姝f槸鐢變簬Chrome鑰岄闈¤搗鏉?鐩存帴JIT鏂瑰紡灝辨槸Chrome閫熷害椋炲揩鐨勫師鍥?

鏈榪慸own浜嗕竴涓笅鏉ヨ瘯浜嗕笅,鏋滅劧鍚嶄笉铏氫紶,API涔熼潪甯哥殑鏄撶敤.涓嶈繃鐢變簬涓嶆槸寰堢啛鎮塉avaScript鐨勫師鍥? 鑷繁鐢╯cons緙栬瘧鍑轟竴涓獀8鐨剆hell,璺戜簡涓涓甫綾葷戶鎵跨殑渚嬪瓙,灞呯劧涓嶈瘑鍒玞lass鍏抽敭瀛?榪欐墠鎰熷徆榪樹笉濡傜敤灝忓閥鐨刲ua鍛?鍦ㄦ垜鐪嬫潵,JavaScript涓嶭ua姣旇緝,涔熷氨鏄釜鑳絥ew,浣嗘槸娌lass鐨勮璦.涔熻鍒漢縐頒負鍗婂悐瀛愰潰鍚戝璞?閮芥槸浣跨敤prototype鏂瑰紡鏉ュ疄鐜扮被鍔熻兘.

4. JavaScriptCore

鍦℅oogle V8鐨勭被嫻嬭瘯紕板鍚?椹笂鐮旂┒浜嗕笅Unity涓嬬殑JavaScript鍒板簳鐢ㄤ簡浠涔堝簱,娌¢敊灝辨槸Apple Safari閲岀殑JavaScriptCore. 榪欎笢瑗胯祫鏂欐瘮Mono榪樺皯,閮芥槸楂橀緞搴撲簡.鎯沖繀鏁村悎涓嶆槸涓鑸殑楹葷儲.浣嗘槸榪樻槸涓嶇‘瀹氳繖涓剼鏈紩鎿庢槸鍚﹀師鐢熸敮鎸佺被

5. Python

Python? 娌℃兂榪囪繖縐嶆牸寮忚寮傜殑璇█,姝eUnity閲屾敮鎸丅oo(涓縐嶅緢綾諱技Python鐨勮璦)寰堝皯鏈変漢鐢ㄤ竴鏍? 涓婃鐢ㄨ繃Python鏄湪涓涓猙uild緋葷粺閲? 娓告垙閲屾槸涓嶄細鑰冭檻榪欑鑴氭湰緋葷粺鐨?鏁堢巼涔熸槸寰堝ぇ鐨勫師鍥?

6. AngleScript, GameMonkey

榪欎袱縐嶈璦閮芥槸寰堣佺殑娓告垙鑴氭湰璇█,涓嶈繃閮芥槸綾籧++鏂瑰紡鐨?涓嶈繃鐢變簬欏圭洰浣跨敤涓嶅,鎴栬鏄湁涓瀹氱殑bug,璧勬枡涔熺浉瀵硅緝灝?鎵浠ュ彲鑳芥渶鍚庤冭檻



]]>
Lua 5.2 work5 鏇存柊錛岃В鍐蟲暟鍒惰漿鎹㈤棶棰?/title><link>http://m.shnenglu.com/sunicdavy/archive/2010/11/14/133613.html</link><dc:creator>鎴橀瓊灝忕瓚</dc:creator><author>鎴橀瓊灝忕瓚</author><pubDate>Sun, 14 Nov 2010 14:07:00 GMT</pubDate><guid>http://m.shnenglu.com/sunicdavy/archive/2010/11/14/133613.html</guid><wfw:comment>http://m.shnenglu.com/sunicdavy/comments/133613.html</wfw:comment><comments>http://m.shnenglu.com/sunicdavy/archive/2010/11/14/133613.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://m.shnenglu.com/sunicdavy/comments/commentRss/133613.html</wfw:commentRss><trackback:ping>http://m.shnenglu.com/sunicdavy/services/trackbacks/133613.html</trackback:ping><description><![CDATA[<p>涓昏淇敼錛?/p> <p>鏇存柊浜嗘枃妗o紙榪欐槸蹇呴』鐨勶級</p> <p><strong>鏂扮殑鏃犵鍙鋒暣鏁癈 API</strong></p> <p>浣嶅鐞嗗嚱鏁伴噸鍛藉悕</p> <p><strong>鏇村ソ鍙婃洿蹇殑鏀寔鍙岀簿搴︽誕鐐規暟杞崲涓烘暣鍨?/strong></p> <p> </p> <p>鍘熸枃<strong><a >鍦ㄦ</a></strong></p> <p> </p> <p>鍙互鐪嬪埌錛屾垜鍦ㄥ勾鍒濆彂鏂囨寚鍑虹殑lua鏁板瓧澶勭悊鏂歸潰鐨刡ug宸茬粡寰楀埌寰堝ソ鐨勮В鍐籌紝涓嶈繃榪欑瑙e喅鏂規硶鍙槸娣誨姞浜哸pi鑰屽凡錛岀湅鏉ヨ繕鏄病鏈夋澗榧犺剼鏈鐞嗙殑褰誨簳錛屽師鏂?a href="http://m.shnenglu.com/sunicdavy/archive/2010/02/04/107161.html"><strong>鍦ㄦ</strong></a></p><img src ="http://m.shnenglu.com/sunicdavy/aggbug/133613.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.shnenglu.com/sunicdavy/" target="_blank">鎴橀瓊灝忕瓚</a> 2010-11-14 22:07 <a href="http://m.shnenglu.com/sunicdavy/archive/2010/11/14/133613.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>璁捐D3D9 HLSL娓叉煋鑴氭湰http://m.shnenglu.com/sunicdavy/archive/2010/02/15/107911.html鎴橀瓊灝忕瓚鎴橀瓊灝忕瓚Mon, 15 Feb 2010 15:18:00 GMThttp://m.shnenglu.com/sunicdavy/archive/2010/02/15/107911.htmlhttp://m.shnenglu.com/sunicdavy/comments/107911.htmlhttp://m.shnenglu.com/sunicdavy/archive/2010/02/15/107911.html#Feedback0http://m.shnenglu.com/sunicdavy/comments/commentRss/107911.htmlhttp://m.shnenglu.com/sunicdavy/services/trackbacks/107911.html鏈榪戠炕鍑哄緢鏃╀箣鍓嶈嚜宸卞啓鐨勪竴濂椾嬌鐢―irect3D 9  Effect緋葷粺鐨勭函shader 3d寮曟搸錛屾墦綆椾嬌鐢ㄦ渶鏂版妧鏈噸鍐欍傞噸鍐欑殑涓昏淇敼鍦ㄤ簬錛?/p>

1. 鍘繪帀Effect緋葷粺錛屾敼鐢℉LSL + 娓叉煋鑴氭湰

2. 浼樺寲娓叉煋鎺ュ彛錛屼嬌鐢ㄦ潗璐ㄧ粺涓shader鍜屾覆鏌撶姸鎬?/p>

闅忓嵆鍙傝冧簡DirectX SDK鐨凣raphics閮ㄥ垎鏂囨。錛欴irectX9 鏃朵唬鐨凟ffect緋葷粺綰補鍙槸涓涓狧LSL鐨勭畝鍗曟覆鏌撹剼鏈疄鐜幫紝闄や簡DXUT錛孎XComposer絳夋瀬灝戠▼搴忎嬌鐢ㄨ繖濂椾笢瑗垮錛屽ぇ鍨嬬殑寮曟搸寰堝皯浣跨敤榪欑鍗婃垚鍝佺郴緇熴傚埌浜咲irectX10鐢氳嚦11錛屽洜涓烘灦鏋勬洿鏀癸紝鍘繪帀鍥哄畾綆$嚎錛屽洜姝ffect鎴愪負杈冧負楂樻晥鍜屼究鎹風殑娓叉煋鑴氭湰錛屽鏋滀笉鏄姹傝緝楂樼殑3d寮曟搸錛屼竴鑸殑娓告垙浣跨敤DirectX10鐨凟ffect娓叉煋鑴氭湰榪樻槸寰堜笉閿欑殑銆?/p>

DX10鐨刦x鑴氭湰涓嶥X9鐨勫樊寮傚湪浜?/p>

娓叉煋鐘舵侊紝閲囨牱鍣ㄧ姸鎬佺瓑閮藉彉涓哄璞★紝騫朵笌API楂樺害緇熶竴

鍦ㄨ剼鏈笌API涓潎鍙互璁劇疆

DepthStencilState EnableDepth
{
    DepthEnable = TRUE;
    DepthWriteMask = ALL;
    DepthFunc = LESS_EQUAL;
};

BlendState NoBlending
{
    AlphaToCoverageEnable = FALSE;
    BlendEnable[0] = FALSE;
};

technique10 Render
{
    pass P0
    {

        SetDepthStencilState( EnableDepth, 0 );
        SetBlendState( NoBlending, float4( 0.0f, 0.0f, 0.0f, 0.0f ), 0xFFFFFFFF );
    }
}

鏈漢瑙夊緱錛岃繖鏍風殑璁捐璁╁浘褰PI鏇翠負鏁忔嵎涓庡綊綾誨寲錛屽彟澶栵紝涔熶究浜嶴tateManager鎴栬呰嚜宸卞仛娓叉煋鐘舵佽漿縐誨強宸紓姣旇緝鏃舵洿涓洪珮鏁?

 

Vista鎿嶄綔緋葷粺鎺ㄥ嚭寰堜箙鍚庯紝DX10鐨勬樉鍗′篃鍗犳湁浜嗗ぇ閲忕殑甯傚満浠介銆備絾鏄敱浜嶥X10浠嶇劧鏄竴涓繃娓PI錛堢被浼間簬DX8)錛屽洜姝わ紝寰堝3D娓告垙瑕佷箞浠嶇劧鏀寔DX9錛岃涓嶇劧鍗蟲敮鎸丏X9涔熸敮鎸丏X10錛岀敋鑷矰X11.

   鐪嬪崥瀹笂鏈夎揪浜虹粍鍥㈢紪鍐欑被浼糄X10鎺ュ彛鍜岀郴緇熺殑杞覆鏌擄紝DX10鐨勮璁℃槸浼樼鐨勩傚洜姝わ紝鍦―X9 HLSL鍩虹涓婏紝緇撳悎鑷繁緙栧啓鐨勬覆鏌撹剼鏈細鏄潪甯稿ソ鐨勯夋嫨銆?

    娓叉煋鑴氭湰鎴戠殑璁捐鎬濊礬鏄繖鏍風殑錛?

1. 鍙槸涓縐嶉澶勭悊鑴氭湰錛屽茍闈炲疄鏃惰繍琛岃剼鏈?

緙栬瘧鍣ㄥ皢鏂囨湰瑙f瀽鍚庯紝杞寲涓轟竴浜涜繍琛屾寚浠わ紝姣斿錛氭湰pass浣跨敤涓鍧楀皬綰圭悊錛屼笅涓pass鐨則arget鏄繖涓汗鐞嗭紝騫朵笖寮鍚摢浜涙覆鏌撶姸鎬併?

2. 鑷畾涔夋牸寮忕殑瑙f瀽鑴氭湰銆?

浣跨敤lua錛宲ython絳夎剼鏈叾瀹炰篃鏄彲浠ョ殑銆備絾鏄湪鍑虹幇閿欒鏃訛紝鎶ュ嚭鐨勯敊鍙兘浼氳涓嶇啛鎮夎繖涓剼鏈璦鐨勪漢鑾悕鍏跺銆?

浣跨敤鏉鵑紶sq鑴氭湰璇█錛熷彲鎯滃叾鍦╨ua鍩虹涓婏紝瀵箃able鐨剆lot鍒濇璧嬪兼椂蹇呴』浣跨敤<-鑰屼笉鏄粺涓浣跨敤=錛屽洜姝や細璁╀綘鐨勮剼鏈█濂囧彜鎬?

XML鑴氭湰錛?XML鍙互閬垮厤澶嶆潅鐨勮娉曟鏌ワ紝鍐欏畬灝辨槸褰掓暣鐨勶紝浣嗕篃鏄綏鍡︾殑錛屾湰鏉exture[2]鍙互琛ㄨ揪瀹屾瘯鐨勶紝闈炶<Texture index = 2/>鏉ョ綏鍡︿笅銆?

OGRE鐨刢ompositor鑴氭湰鍜屾潗璐ㄨ剼鏈氨鏄嚜宸辮В鏋愮殑錛屼笉榪囧嚭涔庨鏂欑殑浣跨敤浜咮NF鑼冨紡榪欑被杈冧負姝h鐨勬柟娉曘傝繖灝辨槸璇達紝闇瑕佸厛瑙f瀽BNF琛ㄨ揪寮忥紝鐒跺悗鍐嶈緭鍏ヨ剼鏈В鏋愶紝緙栧啓榪囩▼鍜岀郴緇熷鏉傚害浼氬彉寰楀紓甯稿鏉傘?

鏈緇堥夋嫨榪樻槸浣跨敤鑷繁瑙f瀽鐨勮剼鏈紝浣跨敤涓浜涘叿浣撲唬鐮佺粨鏋勬潵鏇夸唬BNF榪欑被楂樻繁鐨勪笢瑗?

鍐沖畾浠ュ悗錛屼笅涓姝ラ渶瑕佸埗瀹氭覆鏌撹剼鏈叿浣撳悇閮ㄥ垎鍙婂埗浣滆繃紼?

1. 鍩烘湰lexer

   浠庢枃鏈緱鍒板悇縐峵oken

1. 娓叉煋鐘舵佸璞?

   鐓х潃DX10鎶勫氨濂?

2. Shader瀵煎叆鍙?

     shader鏂囦歡鏉ヨ嚜浜庝綍澶勶紝鍏ュ彛鎬庢牱瀹氫箟

3. 娓叉煋鑴氭湰VM鍙婃寚浠?

  鍐沖畾涓涓汗鐞嗘庢牱璁劇疆錛孯enderTarget鎬庢牱浣跨敤絳夌殑鎸囦護

]]>
LemonComposer 2D娓告垙鍔ㄧ敾寮鍙戝伐鍏?/title><link>http://m.shnenglu.com/sunicdavy/archive/2010/02/05/107257.html</link><dc:creator>鎴橀瓊灝忕瓚</dc:creator><author>鎴橀瓊灝忕瓚</author><pubDate>Fri, 05 Feb 2010 06:58:00 GMT</pubDate><guid>http://m.shnenglu.com/sunicdavy/archive/2010/02/05/107257.html</guid><wfw:comment>http://m.shnenglu.com/sunicdavy/comments/107257.html</wfw:comment><comments>http://m.shnenglu.com/sunicdavy/archive/2010/02/05/107257.html#Feedback</comments><slash:comments>4</slash:comments><wfw:commentRss>http://m.shnenglu.com/sunicdavy/comments/commentRss/107257.html</wfw:commentRss><trackback:ping>http://m.shnenglu.com/sunicdavy/services/trackbacks/107257.html</trackback:ping><description><![CDATA[<p>Lemon鏄湰浜哄紑鍙戠殑涓濂楅傜敤浜?D娓告垙鍔ㄧ敾鍜岄珮綰ф父鎴忔鏋跺強閰嶅緙栬緫鍣紙LemonComposer錛?/p> <blockquote> <p>Lemon緋葷粺鐗規э細</p> <p>1. 鏀寔 Canvas,Sprite,ImageSet錛堝浘鐗囧撫瀛樺偍浜庝竴寮犲浘鐗囷紝絳夊ぇ灝忥級</p> <p>2. ImageSetEx錛堣嚜鐢辨憜鏀劇殑鍥劇墖甯т簬涓寮犲浘鐗囷級*</p> <p>3. 鏀寔瀵硅薄鏃犲叧閿撫鏃朵嬌鐢ㄩ潤鎬佸睘鎬ц繘琛岃緗紝綾諱技浜嶩GE閲岀殑綺劇伒</p> <p>4. 姣忎釜瀵硅薄鍧囧彲鎴愪負Container錛屽茍鎷ユ湁Child Node</p> <p>5. 鍔ㄧ敾鍏抽敭甯х被鍨嬫敮鎸侊細緙╂斁錛屾棆杞紝浣嶇Щ錛岄鑹詫紝鍔ㄧ敾甯э紝閿氱偣錛岄煶鏁?</p> <p>6. 鏀寔鎷懼彇</p> <p>7. 鍩轟簬XML瀛樺偍鐨勬枃浠舵牸寮?/p> <p>8. 鍩轟簬<a >Squirrel</a>鏉鵑紶鑴氭湰鐨勯珮閫熼潰鍚戝璞¤剼鏈?</p> <p>9. 鍥懼艦緋葷粺Graphics鎶借薄錛岄傜敤浜庝換浣曟覆鏌撹澶?/p> <p>10. 鎺т歡緋葷粺*</p> <p>11. 瑙嗛鍥炴斁*</p> <p>鎵鏈夊璞″潎鐢盧TTI鍒涘緩錛屾灇涓懼潎鏈塏amePool+Hash錛屽茍鐢變簬PropertySet鐨勫弽灝勭郴緇?/p> <p> </p></blockquote> <blockquote> <p>LemonComposer緙栬緫鍣ㄧ壒鎬?/p> <p>鐣岄潰鍩轟簬鎴戝幓騫村紑鍙戠殑<a href="http://m.shnenglu.com/sunicdavy/archive/2009/07/24/91059.html">MotionUI</a>錛宭ua</p> <p>8+1鎺у埗鐐圭偣瀵硅薄璋冭妭灞炴?/p> <p>綾籄dobe Flash鐨勫撫緙栬緫銆?/p> <p>綾?DS Max鐨勫垎杞ㄩ亾鍏抽敭甯х紪杈戯紝鏈夊姪浜庝紭鍖朼rt assert</p> <p>鑷敱璋冭妭瀵硅薄灞傜駭鍙婄埗瀛愬叧緋?/p> <p>鍏ㄥ姛鑳芥棤闄愬埗鑷敱Redo,Undo</p> <p> </p></blockquote> <p>*灝嗗湪鏈潵鐗堟湰鏀寔</p> <p><a href="http://m.shnenglu.com/images/cppblog_com/sunicdavy/WindowsLiveWriter/LemonComposer2D_D2B9/image_2.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://m.shnenglu.com/images/cppblog_com/sunicdavy/WindowsLiveWriter/LemonComposer2D_D2B9/image_thumb.png" width="483" height="300"></a> </p> <p> </p> <p> </p> <blockquote> <p>2D娓告垙鏄嫭绔嬫父鎴忕殑涓繪祦錛屼篃鏄垱鎰忥紝鎶曞叆姣旀渶灝忕殑涓涓淮搴︺備絾鏄熀浜?D鐨勫ぇ澶氭槸涓浜涚被浼間簬HGE錛孖ndieLib絳夊紑婧愬厤璐?D寮曟搸銆備絾鏄潰瀵規父鎴忎腑澶ч噺鐨勫姩鐢昏岃█錛屽紑鍙戣呭ぇ澶氭槸浣跨敤鍥劇墖甯ф潵鍒朵綔錛岃櫧鐒舵晥鏋滃緢濂斤紝浣嗘槸璁懼璧勬簮濂界敤鍜屽埗浣滈毦搴︿篃鏄緢闅炬帶鍒剁殑銆?/p></blockquote> <blockquote> <p>嫻佽浜庡幓騫寸殑妞嶇墿瀵瑰兊灝稿拰2004騫村彂琛岀殑<a >RO Offline</a>緇忚繃璧勬簮鍒嗘瀽錛屽氨鏄嬌鐢ㄧ被浼間簬Lemon緋葷粺錛屾垨鑰呰Flash鐨勭郴緇熷埗浣滆屾垚錛屽洜姝ゆ晥鏋滃拰鎵╁睍鎬ч潪甯稿ソ銆?/p> <p>榪欏氨鏄疞emon瀛樺湪鐨勭悊鐢便?/p> <p>Flash闈㈠悜鐨勬槸GDI+Web錛岄偅涔圠emon灝辨槸閽堝娓告垙涓撴湁鐨勶紝鍩轟簬紜歡鍔犻熺殑娓告垙妗嗘灦</p> <p>Flash Action Script 瀵瑰簲鐨勫氨鏄疞emon鐨?a >Squirrel</a>鑴氭湰</p> <p>FlashIDE 瀵瑰簲鐨勫氨鏄疞emon Composer</p> <p>Lemon鐨勭洰鏍囧氨鏄2D娓告垙寮鍙戞洿綆鍗曪紝璁╂父鎴忎腑鍏呮弧鏇村鐨勫姩鐢? 璁╂父鎴忓紑鍙戦毦搴﹂檷浣?/p> <p><a href="http://m.shnenglu.com/images/cppblog_com/sunicdavy/WindowsLiveWriter/LemonComposer2D_D2B9/farming-gold-in-pvz%5B1%5D_2.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="farming-gold-in-pvz[1]" border="0" alt="farming-gold-in-pvz[1]" src="http://m.shnenglu.com/images/cppblog_com/sunicdavy/WindowsLiveWriter/LemonComposer2D_D2B9/farming-gold-in-pvz%5B1%5D_thumb.jpg" width="244" height="196"></a></p></blockquote><img src ="http://m.shnenglu.com/sunicdavy/aggbug/107257.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.shnenglu.com/sunicdavy/" target="_blank">鎴橀瓊灝忕瓚</a> 2010-02-05 14:58 <a href="http://m.shnenglu.com/sunicdavy/archive/2010/02/05/107257.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>鎵瑰鐞嗘壒閲忕紪璇憀ua鑴氭湰http://m.shnenglu.com/sunicdavy/archive/2010/02/04/107187.html鎴橀瓊灝忕瓚鎴橀瓊灝忕瓚Thu, 04 Feb 2010 09:27:00 GMThttp://m.shnenglu.com/sunicdavy/archive/2010/02/04/107187.htmlhttp://m.shnenglu.com/sunicdavy/comments/107187.htmlhttp://m.shnenglu.com/sunicdavy/archive/2010/02/04/107187.html#Feedback0http://m.shnenglu.com/sunicdavy/comments/commentRss/107187.htmlhttp://m.shnenglu.com/sunicdavy/services/trackbacks/107187.htmlfor /r 璺緞 %%i in (鍖歸厤鏂囦歡鍚? do 鎸囦護

 

渚嬪瓙錛?/p>

for /r publish\ui\ %%i in (*.lua) do luac -o %%i %%i



]]>
Lua鑴氭湰嫻偣杞暣褰ug鍒嗘瀽http://m.shnenglu.com/sunicdavy/archive/2010/02/04/107161.html鎴橀瓊灝忕瓚鎴橀瓊灝忕瓚Thu, 04 Feb 2010 04:49:00 GMThttp://m.shnenglu.com/sunicdavy/archive/2010/02/04/107161.htmlhttp://m.shnenglu.com/sunicdavy/comments/107161.htmlhttp://m.shnenglu.com/sunicdavy/archive/2010/02/04/107161.html#Feedback9http://m.shnenglu.com/sunicdavy/comments/commentRss/107161.htmlhttp://m.shnenglu.com/sunicdavy/services/trackbacks/107161.html鍓嶉潰涓鐗?a href="http://m.shnenglu.com/sunicdavy/archive/2010/02/04/107155.html">鏂囩珷涓璴ua鍑虹幇鐨刡ug錛屽叾瀹炴槸lua鏈韓緇撴瀯闂瀵艱嚧鐨勶細

lua涓紝鏁板間嬌鐢╠ouble鏉ュ瓨鍌紝鍖呭惈鏁村艦鍜宒ouble銆傝岃В鏋愬嚭鏉ョ殑鏁村艦涔熸槸琚己杞負double榪涜瀛樺偍錛岃繖鏍峰氨浼氬嚭闂銆?/p>

涓句竴涓畝鍗曠殑渚嬪瓙錛?/p>

double f = (double)0xffffffff;
int a = int(f);

a鑲畾涓嶆槸-1

榪欓噷鐨勬枃绔犺鏄庤繖涓被鍨嬭漿鎹㈤棶棰樼殑緙樼敱銆?/p>

 

鍦?a >Squirrel鑴氭湰涓氨涓嶄細鏈夎繖涓棶棰?/p>

local a = 0xffffffff

print( a )

緇撴灉涓?1

鏌ョ湅鍏舵簮浠g爜錛?/p>

typedef union tagSQObjectValue
{
    struct SQTable *pTable;
    struct SQArray *pArray;
    struct SQClosure *pClosure;
    struct SQGenerator *pGenerator;
    struct SQNativeClosure *pNativeClosure;
    struct SQString *pString;
    struct SQUserData *pUserData;
    SQInteger nInteger;
    SQFloat fFloat;
    SQUserPointer pUserPointer;
    struct SQFunctionProto *pFunctionProto;
    struct SQRefCounted *pRefCounted;
    struct SQDelegable *pDelegable;
    struct SQVM *pThread;
    struct SQClass *pClass;
    struct SQInstance *pInstance;
    struct SQWeakRef *pWeakRef;
    SQRawObjectVal raw;
}SQObjectValue;

 

鍙互鐪嬪埌

SQInteger nInteger;
SQFloat fFloat;

鏄垎寮瀛樺偍鐨勶紝鍥犳灝變笉浼氭湁榪欎釜闂

 

lua瑙e喅鏂規硶錛?/p>

1. 灝嗗崄鍏繘鍒舵崲涓?0榪涘埗瀛樺偍

2. 絳夊緟澶т緺鎴栬呭畼鏂逛慨鏀逛唬鐮侊紝鍋氬嚭patch



]]>
Lua鍦≧elease鐗堟湰涓嬬殑涓涓猙ughttp://m.shnenglu.com/sunicdavy/archive/2010/02/04/107155.html鎴橀瓊灝忕瓚鎴橀瓊灝忕瓚Thu, 04 Feb 2010 02:59:00 GMThttp://m.shnenglu.com/sunicdavy/archive/2010/02/04/107155.htmlhttp://m.shnenglu.com/sunicdavy/comments/107155.htmlhttp://m.shnenglu.com/sunicdavy/archive/2010/02/04/107155.html#Feedback2http://m.shnenglu.com/sunicdavy/comments/commentRss/107155.htmlhttp://m.shnenglu.com/sunicdavy/services/trackbacks/107155.html鏈榪戝皢鑷繁鐨刄I宸ョ▼鍦≧elease鐗堜笅緙栬瘧錛屽彂鐜版湁閮ㄥ垎鎺т歡鐨勯鑹插眳鐒跺亸榛勶紝鎯沖繀娑叉櫠涔熶笉鑷充簬鑰佸寲鐨勯偅涔堝帀瀹籌紝闅忔満寮濮嬪皢宸ョ▼鍔犲叆璋冭瘯淇℃伅榪涜璺熻釜錛屾帓闄I宸ョ▼錛屽強鑷繁鍐欑殑lua灝佽闂錛屽皢闂緙╁皬涓猴細

lua浠g爜錛?/p>

t = {}

t.FillColor = 0xFFFFFFFF

foo( t )

鍦–++涓敞鍐屼竴涓猣oo鍑芥暟錛岀劧鍚庤幏鍙杢able t涓殑FillColor鎴愬憳

鍙戠幇鍙栧緱鐨勫煎眳鐒朵負0x80000000

 

浣跨敤lua c api嫻嬭瘯浠g爜

lua_newtable( L );
lua_setglobal( L, "t");

lua_getglobal( L, "t");
lua_pushstring(L,"FillColor");
lua_pushinteger( L, 0xffffffff );
lua_pushinteger( L, -1 );
lua_settable( L, -3 );

lua_getglobal( L, "t");
lua_pushstring( L, "FillColor");
lua_gettable( L, -2 );
int t = lua_tointeger( L, -1 );

緇撴灉t涔熸槸0x80000000

 

鐒跺悗灝嗗崄鍏繘鍒剁殑0xFFFFFFFF鎹㈡垚鍗佽繘鍒剁殑4294967295錛屾祴璇曠粨鏋滄紜樉紺?1

鍐嶄嬌鐢ㄥ嚑涓牱鏈祴璇?

0xFF5F5F5F = 4284440415 浼氳鏀規垚0xFF5F5F00

 

榪欎釜bug鍊掓槸寰堝ソ瑙e喅錛屽皢浠g爜涓殑鍗佸叚榪涘埗鏁板叏鎹負10榪涘埗鍗沖彲銆備絾鏄負浠涔堝彧鍦≧elease鐗堟湰鍙戠敓鍛紵

鏈漢浣跨敤鐨勬槸lua 5.1.4 鍘熺敓



]]>
涓烘父鎴忕郴緇熼夋嫨涓涓帴鍙f柟寮?/title><link>http://m.shnenglu.com/sunicdavy/archive/2009/12/31/104543.html</link><dc:creator>鎴橀瓊灝忕瓚</dc:creator><author>鎴橀瓊灝忕瓚</author><pubDate>Thu, 31 Dec 2009 03:42:00 GMT</pubDate><guid>http://m.shnenglu.com/sunicdavy/archive/2009/12/31/104543.html</guid><wfw:comment>http://m.shnenglu.com/sunicdavy/comments/104543.html</wfw:comment><comments>http://m.shnenglu.com/sunicdavy/archive/2009/12/31/104543.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://m.shnenglu.com/sunicdavy/comments/commentRss/104543.html</wfw:commentRss><trackback:ping>http://m.shnenglu.com/sunicdavy/services/trackbacks/104543.html</trackback:ping><description><![CDATA[<p>     鍑嗗涓鴻嚜宸辯殑2D娓告垙鍔ㄧ敾緋葷粺閫夋嫨涓濂楃粰澶栭儴浣跨敤鐨勬帴鍙f柟寮忥紝鏈夊涓嬪嚑縐嶉夋嫨錛?/p> <p> </p> <p>1. 綰疌 API鏂瑰紡瀵煎嚭錛岀被浼間簬Windows API鏂瑰紡</p> <p>浼樼偣錛氱畝媧侊紝鍙互渚汣/C#涔冭嚦鍏朵粬鍙互瀵煎叆C DLL鐨勮璦浣跨敤</p> <p>緙虹偣錛欳++鐨勭郴緇熻漿鍖栦負C浼氶亣鍒板緢澶氭ц兘浠ュ強鏋舵瀯鐨勬姌鎹燂紝瀵逛簬瀵硅薄鎺у埗綾誨姛鑳藉鍑烘瘮杈冨鐨勭郴緇燂紝榪欑鏂瑰紡綆鐩存槸鍣╂ⅵ</p> <p> </p> <p>2. C++鏂瑰紡瀵煎嚭錛屽畯鏂瑰紡瀹炵幇RTTI浠ュ強C++鍙嶅皠緋葷粺</p> <p>浼樼偣錛氬己澶э紝鏄撶敤銆?/p> <p>緙虹偣錛氬璞$敓鍛藉懆鏈熶笉瀹規槗鎺у埗錛屽弽灝勭郴緇熻璁℃瘮杈冭垂鏃訛紝鍙兘鏆撮湶寰堝綾葷殑緇嗚妭錛屽彧鑳界粰C++浣跨敤</p> <p> </p> <p>3. COM鏂瑰紡錛岀被DirectX鐨勬帴鍙f柟寮?/p> <p>浼樼偣錛氬晢涓氶」鐩凡緇忚瘉鏄庤繖縐嶆帴鍙f柟寮忕殑寮哄ぇ鍦版柟銆傛棤璁烘槸澶氫釜瀵硅薄鐨勭被鍔熻兘瀵煎嚭錛岃繕鏄疌OM鎺ュ彛閲嶈澆閮介潪甯告柟渚褲傝屼笖錛屽彲浠ユ瀬涓哄鏄撶殑璁?NET璁塊棶銆俋BOX SDK閲岀殑XUI灝辨槸閲囩敤榪欑鏂瑰紡錛岃屼笖榪樿璁′簡涓濂桟 API鎼厤鐨勫己澶++鍙嶅皠緋葷粺錛屾敮鎸佸姩鎬佺被鍒涘緩錛孯TTI錛屽姩鎬佺被鍨嬭漿鎹㈢瓑絳夈?/p> <p>緙虹偣錛氶渶瑕佺郴緇熸敞鍐岋紝涓嶈兘璺ㄥ鉤鍙般侰OM鏍囧噯瀛︿範璧鋒潵闇瑕佹椂闂?/p> <p> </p> <p>4. 鑴氭湰緇戝畾</p> <p>浼樼偣錛氫繚鎸佷綘鐨勭郴緇熷澶朇/C++鎺ュ彛鐨勫共鍑錛岀畝媧併傞氳繃鑴氭湰綾葷粦瀹氾紝鍙互寰堝揩鐨勫皢C++鍔熻兘娉ㄥ唽鍒拌剼鏈腑銆?/p> <p>緙虹偣錛氳剼鏈鏋滄病鏈夎皟璇曞櫒錛屽皢浼氳寮鍙戜腑紕板埌鐨勬鎵嬮棶棰橈紝鐢氳嚦浜庡湪鍚庢湡緇存姢緋葷粺浠ュ強緋葷粺鏋舵瀯澶у彉鍔ㄥ彉寰楀紓甯稿鏉傘傝剼鏈殑鎬ц兘鍐沖畾浜嗕笉鑳借鍏跺仛瀹炴椂澶勭悊錛屼緥濡傦細娓叉煋</p> <p> </p> <p> 鏈緇堥夋嫨涓嬫潵錛岀敱浜庢湁鑷繁鐨勭晫闈㈢郴緇烳otion浣跨敤lua鐨勫嚱鏁扮粦瀹氱殑鍓嶄緥錛屽洜姝よ繕鏄喅瀹氶夋嫨涓嬈捐剼鏈璦鏉ュ仛緋葷粺鐨勫澶栨帴鍙o紝榪欓噷鏈夊嚑涓夋嫨錛?/p> <p>1. Lua</p> <p>  鍙互璇存渶濂界殑娓告垙緋葷粺鑴氭湰璇█銆傜ǔ瀹氾紝楂樻晥錛宐ug鍑犱箮娌℃湁錛堝嵆渚挎湁錛屾櫘閫氬紑鍙戣呬篃鏄緢闅懼療瑙夌殑錛夈傞厤涓奓uaPlus鐨勫己澶++緇戝畾緋葷粺錛屼綘鐨勭郴緇熷紑鍙戞晥鐜囧彲浠ユ彁楂樺緢澶氥傝繖閲屾帹鑽恘otepad++鏉ュ仛lua寮鍙戯紝紼嶅井閰嶇疆涓嬶紝寮瑰嚭鎻愮ず緇欎綘鎰熻鍦ㄤ嬌鐢╒isual Studio錛岋細錛?/p> <p>   鍚屾椂闇瑕佹寚鍑虹殑鏄紝lua鐨勭被鍔熻兘紜疄姣旇緝寮便傝櫧鐒跺彲浠ョ敤metatable鏂瑰紡鏉ユā鎷熴備絾閫艱繎璺焠ative class鏀寔榪樺樊寰堣繙錛屽疄闄呭紑鍙戜腑錛屼綘鑳戒綋浼氬嚭class涓殑鏉冮檺鎺у埗錛坧rivate錛宲rotected錛夋湁澶氫箞閲嶈銆?/p> <p>2. Python</p> <p>   璇氱劧錛岃繖鏄釜鏈OO鐨勮剼鏈備絾鏄浜庢父鎴忥紝瀹冨お鎱簡銆傝櫧鐒舵湰浜哄彧鏄敤python鍐欒繃涓浜沚uild緋葷粺錛屼絾浠庡緢澶氭湅鍙嬪弽搴旂殑鎯呭喌鏉ョ湅錛孭ython宓屽叆娓告垙緋葷粺錛岀‘瀹炲お鎱€傜敤Stackless Python錛?鐢ㄧ涓夋柟寮婧愪駭鍝侊紝榪樻槸璁ゅ噯鍝佺墝錛屽懙鍛碉紝榪欓噷濡傛灉鏈夌敤榪囩殑鍚屽錛屾榪庢彁渚涙劅鍙椼?/p> <p>3. C#</p> <p>   璇█鍜岀郴緇熼兘寰堢編錛屼絾鏄兂宓屽叆娓告垙錛岃繕鏄緢鐥涚殑銆?net騫沖彴鍙儨灝卞湪浜庯紝鍒扮幇鍦ㄤ負姝紝鍙兘榪樹笉鏄墍鏈夋満鍣ㄩ粯璁ゅ畨瑁呮湁.net騫沖彴銆傚鏋滀綘鐨勬父鎴忔槸C++鍐欐垚錛屼絾鍗磋瀹夎.net浠ヤ究浣犵殑鑴氭湰鑳借繍琛岋紝榪欏緢濂囨惂錛熸墍浠ワ紝濡傛灉瑕佺敤C#錛岃繕涓嶅涓嶇敤鑴氭湰錛屽叏鐩?net灝卞ソ浜嗐侻anaged DX錛?閭d笢瑗垮嚑騫村墠灝辮MS鎵撳叆鍐峰浜嗐俋NA錛?閭d笢瑗垮彧鏄竴涓帺鍏鳳紝鍒懜銆?/p> <p>4.<a >Squirrel</a>鏉鵑紶鑴氭湰</p> <p>   榪欐槸涓ソ涓滆タ銆傜被lua鐨勮娉曪紝C/C++/Java鐨勮璦緇撴瀯錛岀函姝g殑native class澶栧姞OO鏀寔銆傛嫢鏈夊紑婧愮殑C++綾葷粦瀹氱郴緇熴傛渶鐖界殑鏄紝<a >SQDEV</a>鏀寔鏃ラ錛圗clipse錛変笅鐨勮繙紼嬭皟璇曪紝寮鍙戠幆澧冭繕鏀寔鍔ㄦ佽娉曟鏌ャ俹h,my god銆傝繕璇翠笉瀹氬摢澶╄繖鑴氭湰琚玀S鎷涘畨錛岃窡IronPython涓鏍峰紕涓?net緇戝畾銆?/p> <p> </p> <p><img src="http://wiki.squirrel-lang.org/myimages/debugger.png" width="568" height="451"></p><img src ="http://m.shnenglu.com/sunicdavy/aggbug/104543.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.shnenglu.com/sunicdavy/" target="_blank">鎴橀瓊灝忕瓚</a> 2009-12-31 11:42 <a href="http://m.shnenglu.com/sunicdavy/archive/2009/12/31/104543.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>铏氬夠寮曟搸涓殑Kismet铏氭嫙娓告垙閫昏緫緙栬緫鍣ㄨ祫鏂?/title><link>http://m.shnenglu.com/sunicdavy/archive/2009/12/18/103480.html</link><dc:creator>鎴橀瓊灝忕瓚</dc:creator><author>鎴橀瓊灝忕瓚</author><pubDate>Fri, 18 Dec 2009 09:42:00 GMT</pubDate><guid>http://m.shnenglu.com/sunicdavy/archive/2009/12/18/103480.html</guid><wfw:comment>http://m.shnenglu.com/sunicdavy/comments/103480.html</wfw:comment><comments>http://m.shnenglu.com/sunicdavy/archive/2009/12/18/103480.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://m.shnenglu.com/sunicdavy/comments/commentRss/103480.html</wfw:commentRss><trackback:ping>http://m.shnenglu.com/sunicdavy/services/trackbacks/103480.html</trackback:ping><description><![CDATA[<p>铏氬夠涓湁涓濂椾笓闂ㄧ敤浜庣瓥鍒掍嬌鐢ㄧ殑閫昏緫寮鍙戝伐鍏鳳細Kismet錛屽彿縐版棤闇緙栫▼灝卞彲浠ュ畬鎴愬ぇ閮ㄥ垎鐨勯昏緫銆傛渶榪戞濂藉湪鐮旂┒榪欐柟闈㈢殑鎶鏈紝鎵浠ユ壘鍒頒簡涓浜涜祫鏂?/p> <p> </p> <p>榪欐槸涓涓畝鍗曠殑鏁欏錛屽憡璇変綘Kismet鏄庝箞榪愯鐨?/p> <p><a >http://udn.epicgames.com/Three/KismetUserGuide.html</a></p> <p> </p> <p>榪欐槸Kismet鐨勮祫鏂?/p> <p><a >http://udn.epicgames.com/Three/KismetReference.html</a></p> <p> </p> <p>璁╂垜浠潵鐔熸倝涓?/p> <p><img alt="event.jpg" src="http://udn.epicgames.com/Three/rsrc/Three/KismetUserGuide/event.jpg">榪欐槸涓涓狤vent鑺傜偣錛屼竴鑸敤浜庡垱寤鴻緭鍏ユ祦錛屼簨浠跺彲浠ヤ粠Actor鎴栬呭叾浠栧湴鏂硅繘鍏?/p> <p> </p> <p><img alt="action.jpg" src="http://udn.epicgames.com/Three/rsrc/Three/KismetUserGuide/action.jpg">榪欐槸涓涓狝ction鑺傜偣錛屽姩鎬佺殑鎼帴杈撳叆鏉′歡錛屽彲浠ュ揩閫熺殑杈撳嚭浣犻渶瑕佺殑緇撴灉</p> <p> </p> <p><img alt="condition.jpg" src="http://udn.epicgames.com/Three/rsrc/Three/KismetUserGuide/condition.jpg">榪欐槸涓涓狢ondition鑺傜偣錛岀敤浜庢牴鎹緭鍏ワ紝杈撳嚭緇撴灉</p> <p> </p> <p><img alt="variable.jpg" src="http://udn.epicgames.com/Three/rsrc/Three/KismetUserGuide/variable.jpg">榪欐槸涓涓櫘閫氱殑鍙橀噺錛屽瓨鍌ㄤ換浣曞彲浠ュ瓨鍌ㄧ殑瀵硅薄</p> <p> </p> <p>絎竴涓緥瀛愶細</p> <p><img alt="simple_sequence.jpg" src="http://udn.epicgames.com/Three/rsrc/Three/KismetUserGuide/simple_sequence.jpg"></p> <p>榪欎釜渚嬪瓙瑕佸疄鐜扮殑鏄紝鐜╁鐐瑰嚮鍚庯紝鎵撳紑涓鐩忕伅</p> <p>鐜╁閫氳繃Event鑺傜偣錛屼駭鐢熶竴涓緭鍏ユ祦錛岃繖涓祦琚繛鎺ュ埌Togger錛圓ction錛夌殑Turn On鑺傜偣錛屾敞鎰忥紝榛戣壊鐨勮繛鎺ョ嚎琛ㄧず鈥滄搷浣滄祦鈥濓紝鑰孴ogger鐨勬墽琛岀洰鏍囪鎺ュ埌浜嗙伅涓婏紝榪欐牱涓涓畝鍗曠殑閫昏緫灝辨墽琛屽嚭鏉ヤ簡</p> <p> </p> <p>鍔ㄦ佺粦瀹氫簨浠?/p> <p><img alt="attach_event.jpg" src="http://udn.epicgames.com/Three/rsrc/Three/KismetUserGuide/attach_event.jpg"></p> <p> </p> <p></p> <p></p> <p></p> <p></p> <p></p> <p>鏈夋椂浣犻渶瑕佺粦瀹氱殑瀵硅薄鏄笉鍦ㄧ紪杈戝櫒閲岀殑錛岃繖涓緥瀛愬氨鏄湪娓告垙涓姩鎬佸垱寤轟竴涓狝ctor錛岃瑙e喅榪欎釜闂錛屽氨蹇呴』灝嗙墿浣撹繛鎺ュ埌涓涓彉閲忋?/p> <p>褰揂ctor Factory鎵ц鍚庯紝鍏剁敓鎴愪竴涓柊鐨凙ctor錛屽茍灝嗗叾鏀劇疆鍦ㄤ竴涓璞℃暟緇勪腑錛堝浘涓殑闂彿錛夛紝鐒跺悗錛屼粬浼氳皟鐢ˋttachToEvent action錛屽皢姝諱骸浜嬩歡榪炴帴鍒拌繖涓彉閲忋?閭d箞褰撹繖涓狝ctor姝諱骸鏃訛紝浜嬩歡灝變細琚Е鍙戙?/p> <p> </p> <p>鍏堣榪欎簺錛屽懙鍛碉紝鍚冮キ鍚冮キ</p><img src ="http://m.shnenglu.com/sunicdavy/aggbug/103480.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.shnenglu.com/sunicdavy/" target="_blank">鎴橀瓊灝忕瓚</a> 2009-12-18 17:42 <a href="http://m.shnenglu.com/sunicdavy/archive/2009/12/18/103480.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://119773.com" target="_blank">伊人影院久久</a>| <a href="http://1323123.com" target="_blank">亚洲高清一区二区三区</a>| <a href="http://zj-jufeng.com" target="_blank">久久一区二区三区四区</a>| <a href="http://henhenai1.com" target="_blank">欧美视频一区二区三区在线观看</a>| <a href="http://jinlijun.com" target="_blank">亚洲免费中文</a>| <a href="http://pppp95.com" target="_blank">一区国产精品</a>| <a href="http://05078888.com" target="_blank">欧美成人一区二区三区片免费</a>| <a href="http://www22336.com" target="_blank">亚洲人成绝费网站色www</a>| <a href="http://tigerpowerinc.com" target="_blank">国产一级揄自揄精品视频</a>| <a href="http://www49853b.com" target="_blank">蜜臀va亚洲va欧美va天堂</a>| <a href="http://wwwavtb2049.com" target="_blank">91久久国产综合久久91精品网站</a>| <a href="http://saox28.com" target="_blank">亚洲精品中文字幕女同</a>| <a href="http://zhongrenma.com" target="_blank">久久xxxx</a>| <a href="http://4322333.com" target="_blank">亚洲欧美在线一区</a>| <a href="http://teloregen.com" target="_blank">91久久香蕉国产日韩欧美9色</a>| <a href="http://hhsp13.com" target="_blank">亚洲精品日韩在线</a>| <a href="http://ayxchc.com" target="_blank">欧美成人高清视频</a>| <a href="http://fdgkinetic.com" target="_blank">亚洲精品美女免费</a>| <a href="http://wzxjzx.com" target="_blank">一区二区在线视频观看</a>| <a href="http://707377c.com" target="_blank">国产精品美女主播在线观看纯欲</a>| <a href="http://555888666.com" target="_blank">久久精品亚洲</a>| <a href="http://quoviajes.com" target="_blank">欧美专区福利在线</a>| <a href="http://yyy922.com" target="_blank">国产精品美女在线观看</a>| <a href="http://744734.com" target="_blank">亚洲天堂av高清</a>| <a href="http://777177c.com" target="_blank">夜夜嗨一区二区</a>| <a href="http://8xxjj.com" target="_blank">亚洲国产高清自拍</a>| <a href="http://127mingdao.com" target="_blank">国产精品―色哟哟</a>| <a href="http://www-919198.com" target="_blank">一区二区欧美亚洲</a>| <a href="http://119552.com" target="_blank">亚洲午夜91</a>| <a href="http://niceboybao.com" target="_blank">性色av一区二区三区红粉影视</a>| <a href="http://687673.com" target="_blank">欧美日韩国语</a>| <a href="http://bizhijidi.com" target="_blank">国产精品久久久久久久久免费桃花</a>| <a href="http://xmjhyey.com" target="_blank">欧美~级网站不卡</a>| <a href="http://91mdtv.com" target="_blank">欧美精品一区二区三区蜜桃</a>| <a href="http://755795.com" target="_blank">久久色中文字幕</a>| <a href="http://weixiao668.com" target="_blank">久久精品人人爽</a>| <a href="http://hu62.com" target="_blank">欧美激情一区二区三区全黄 </a>| <a href="http://csjtzn.com" target="_blank">99精品视频免费观看视频</a>| <a href="http://p54y.com" target="_blank">亚洲国产精品专区久久</a>| <a href="http://cao2014.com" target="_blank">黄色成人在线免费</a>| <a href="http://9911444.com" target="_blank">国产精品日韩专区</a>| <a href="http://taoh228.com" target="_blank">欧美在线视频a</a>| <a href="http://151545.com" target="_blank">日韩视频中午一区</a>| <a href="http://derinsolar.com" target="_blank">亚洲欧洲日韩在线</a>| <a href="http://787622.com" target="_blank">夜夜精品视频</a>| <a href="http://tongrenyaoye.com" target="_blank">欧美激情欧美激情在线五月</a>| <a href="http://wwwyinyinai149.com" target="_blank">嫩草影视亚洲</a>| <a href="http://actskynet.com" target="_blank">欧美成人免费全部观看天天性色</a>| <a href="http://quanfadq.com" target="_blank">久久久噜噜噜久久狠狠50岁</a>| <a href="http://707377c.com" target="_blank">亚洲国产精品成人</a>| <a href="http://wwmm9.com" target="_blank">篠田优中文在线播放第一区</a>| <a href="http://gzxyh88.com" target="_blank">欧美午夜视频网站</a>| <a href="http://yqr55.com" target="_blank">国产精品久久久久9999高清</a>| <a href="http://9955377.com" target="_blank">亚洲国内精品</a>| <a href="http://555134.com" target="_blank">99国产精品久久久</a>| <a href="http://373gg.com" target="_blank">日韩亚洲欧美一区</a>| <a href="http://bjopl.com" target="_blank">免费成人av在线</a>| <a href="http://csmgxun.com" target="_blank">亚洲欧美国产另类</a>| <a href="http://www-kkjj88.com" target="_blank">亚洲精品欧洲</a>| <a href="http://567acg.com" target="_blank">国产亚洲美州欧州综合国</a>| <a href="http://32tun.com" target="_blank">亚洲欧美在线另类</a>| <a href="http://tinganji.com" target="_blank">91久久精品网</a>| <a href="http://vvv3939.com" target="_blank">香蕉精品999视频一区二区</a>| <a href="http://eguge.com" target="_blank">欧美日韩不卡合集视频</a>| <a href="http://0855dyw.com" target="_blank">性欧美大战久久久久久久免费观看</a>| <a href="http://004ttt.com" target="_blank">久久久久久电影</a>| <a href="http://4322333.com" target="_blank">亚洲天堂偷拍</a>| <a href="http://xissy.com" target="_blank">亚洲精品乱码久久久久</a>| <a href="http://my8823.com" target="_blank">一区二区国产精品</a>| <a href="http://o10669.com" target="_blank">欧美日韩一区二区在线观看视频 </a>| <a href="http://www123hao.com" target="_blank">亚洲伊人伊色伊影伊综合网</a>| <a href="http://118936.com" target="_blank">欧美日韩免费高清</a>| <a href="http://3233328.com" target="_blank">久热精品视频在线</a>| <a href="http://www-4997.com" target="_blank">欧美一区二区三区在线</a>| <a href="http://highfivewe.com" target="_blank">黄色欧美日韩</a>| <a href="http://6faa.com" target="_blank">蜜桃久久av</a>| <a href="http://dy25777.com" target="_blank">亚洲精品乱码视频 </a>| <a href="http://26cs.com" target="_blank">亚洲欧美日韩天堂一区二区</a>| <a href="http://www201314.com" target="_blank">久久中文在线</a>| <a href="http://dgxinshidai.com" target="_blank">99ri日韩精品视频</a>| <a href="http://heyzo1199.com" target="_blank">午夜视频一区二区</a>| <a href="http://ttdy20.com" target="_blank">欧美一区二区国产</a>| <a href="http://608u.com" target="_blank">亚洲在线播放</a>| <a href="http://javliabary.com" target="_blank">国产丝袜一区二区</a>| <a href="http://www134rr.com" target="_blank">亚洲国产精品一区在线观看不卡</a>| <a href="http://57sa.com" target="_blank">国产欧美日韩免费</a>| <a href="http://xhtd688.com" target="_blank">久久精彩免费视频</a>| <a href="http://551753.com" target="_blank">欧美11—12娇小xxxx</a>| <a href="http://787622.com" target="_blank">一区二区三区四区国产精品</a>| <a href="http://www-798009.com" target="_blank">国产精品专区h在线观看</a>| <a href="http://zzchanke.com" target="_blank">亚洲欧洲综合另类在线</a>| <a href="http://mmmm26.com" target="_blank">国内精品免费午夜毛片</a>| <a href="http://88844401.com" target="_blank">亚洲国产精品欧美一二99</a>| <a href="http://ourskycity.com" target="_blank">欧美日韩亚洲视频</a>| <a href="http://hazymall.com" target="_blank">久久黄金**</a>| <a href="http://080973.com" target="_blank">国产精品色午夜在线观看</a>| <a href="http://ez4444.com" target="_blank">国产精品一区二区视频</a>| <a href="http://shiselol.com" target="_blank">亚洲国内精品在线</a>| <a href="http://40346c.com" target="_blank">久久国产夜色精品鲁鲁99</a>| <a href="http://www308eee.com" target="_blank">欧美日韩在线一区二区</a>| <a href="http://www-772773.com" target="_blank">欧美精品久久一区二区</a>| <a href="http://csmdjs.com" target="_blank">欧美在线视频一区</a>| <a href="http://anxingou365.com" target="_blank">欧美综合二区</a>| <a href="http://987kt.com" target="_blank">久久久亚洲午夜电影</a>| <a href="http://avsemm.com" target="_blank">久久久在线视频</a>| <a href="http://taoseav8.com" target="_blank">国产精品r级在线</a>| <a href="http://270909.com" target="_blank">亚洲视频图片小说</a>| <a href="http://9881600.com" target="_blank">亚洲美女精品久久</a>| <a href="http://3dmh145.com" target="_blank">在线观看日韩专区</a>| <a href="http://wy77777.com" target="_blank">欧美午夜精品久久久久久久</a>| <a href="http://9952222.com" target="_blank">久久久久国产精品厨房</a>| <a href="http://www89999.com" target="_blank">欧美三级网页</a>| <a href="http://lucky5888.com" target="_blank">亚洲精品日韩综合观看成人91</a>| <a href="http://by3259.com" target="_blank">欧美日韩妖精视频</a>| <a href="http://pmref.com" target="_blank">亚洲激情视频在线</a>| <a href="http://timonna.com" target="_blank">亚洲高清一区二</a>| <a href="http://44ie.com" target="_blank">久久午夜影视</a>| <a href="http://hhhtalk.com" target="_blank">国产精品黄色</a>| <a href="http://ttdy20.com" target="_blank">性刺激综合网</a>| <a href="http://1194123.com" target="_blank">欧美一区观看</a>| <a href="http://6u6uuu666.com" target="_blank">国产视频一区欧美</a>| <a href="http://tingxihuan.com" target="_blank">午夜精品亚洲一区二区三区嫩草</a>| <a href="http://saobitv.com" target="_blank">在线日本欧美</a>| <a href="http://www344399.com" target="_blank">久久激情网站</a>| <a href="http://7282789.com" target="_blank">国产乱码精品一区二区三区忘忧草 </a>| <a href="http://345521.com" target="_blank">久久亚洲视频</a>| <a href="http://800716.com" target="_blank">欧美激情影音先锋</a>| <a href="http://97sgg.com" target="_blank">激情av一区二区</a>| <a href="http://yw9677.com" target="_blank">欧美成人一区二区三区在线观看</a>| <a href="http://cc28256.com" target="_blank">亚洲精品乱码久久久久久蜜桃91 </a>| <a href="http://44o77.com" target="_blank">国产精品美女一区二区</a>| <a href="http://wwwavtb1122.com" target="_blank">亚洲毛片播放</a>| <a href="http://caerusmdx.com" target="_blank">免费看的黄色欧美网站</a>| <a href="http://cz-sensor.com" target="_blank">国产精品一区一区三区</a>| <a href="http://zhipiao998.com" target="_blank">一区二区三区视频在线</a>| <a href="http://hhsp13.com" target="_blank">欧美高清在线一区</a>| <a href="http://3233328.com" target="_blank">亚洲免费成人av电影</a>| <a href="http://1313js.com" target="_blank">欧美成人精品一区</a>| <a href="http://8p3c.com" target="_blank">亚洲一区日韩在线</a>| <a href="http://gdjuba.com" target="_blank">亚洲一区欧美二区</a>| <a href="http://www-188444.com" target="_blank">久久人人爽爽爽人久久久</a>| <a href="http://jldianda.com" target="_blank">亚洲精一区二区三区</a>| <a href="http://www-8438.com" target="_blank">国产精品一卡</a>| <a href="http://674446.com" target="_blank">欧美高清一区</a>| <a href="http://483134.com" target="_blank">久久人91精品久久久久久不卡</a>| <a href="http://555888666.com" target="_blank">99精品国产在热久久</a>| <a href="http://www-111111.com" target="_blank">欧美国产日韩免费</a>| <a href="http://kan0577.com" target="_blank">模特精品在线</a>| <a href="http://fobdoer.com" target="_blank">欧美激情一区</a>| <a href="http://hnluvlux.com" target="_blank">亚洲一区免费网站</a>| <a href="http://32m8.com" target="_blank">欧美激情四色 </a>| <a href="http://bandycup.com" target="_blank">亚洲高清视频在线</a>| <a href="http://aijiaoji.com" target="_blank">亚洲一区国产精品</a>| <a href="http://cnchtx.com" target="_blank">亚洲免费观看高清在线观看</a>| <a href="http://qdpetlove.com" target="_blank">亚洲国产欧美在线</a>| <a href="http://576193.com" target="_blank">亚洲每日在线</a>| <a href="http://32m8.com" target="_blank">在线亚洲观看</a>| <a href="http://wwwp6660.com" target="_blank">香蕉视频成人在线观看 </a>| <a href="http://221080.com" target="_blank">国产在线一区二区三区四区 </a>| <a href="http://390642.com" target="_blank">久久国产视频网站</a>| <a href="http://pgpg520.com" target="_blank">欧美视频观看一区</a>| <a href="http://9585865.com" target="_blank">中日韩视频在线观看</a>| <a href="http://yc7878.com" target="_blank">亚洲欧洲美洲综合色网</a>| <a href="http://www433ad.com" target="_blank">亚洲欧美国产日韩天堂区</a>| <a href="http://moonshile.com" target="_blank">激情久久综合</a>| <a href="http://xxxx48.com" target="_blank">亚洲男人的天堂在线aⅴ视频</a>| <a href="http://ehagakii.com" target="_blank">欧美成人黄色小视频</a>| <a href="http://www-333410.com" target="_blank">久久精品免费电影</a>| <a href="http://6h8c.com" target="_blank">欧美在线看片a免费观看</a>| <a href="http://69kun.com" target="_blank">亚洲国产精选</a>| <a href="http://sclddn.com" target="_blank">亚洲精品一区在线观看</a>| <a href="http://74va.com" target="_blank">亚洲黄色一区</a>| <a href="http://wwww999.com" target="_blank">国产精品乱码一区二三区小蝌蚪 </a>| <a href="http://668334.com" target="_blank">一本久久青青</a>| <a href="http://www4455va.com" target="_blank">尤物yw午夜国产精品视频明星</a>| <a href="http://chinasck.com" target="_blank">国产精品v欧美精品v日韩</a>| <a href="http://www78778.com" target="_blank">亚洲无限av看</a>| <a href="http://81plas.com" target="_blank">在线综合亚洲</a>| <a href="http://97caoporm.com" target="_blank">亚洲性视频h</a>| <a href="http://www-787333.com" target="_blank">亚洲午夜羞羞片</a>| <a href="http://hbdxzx.com" target="_blank">99re6这里只有精品视频在线观看</a>| <a href="http://simextec.com" target="_blank">亚洲激情成人网</a>| <a href="http://300644.com" target="_blank">亚洲国产精品久久人人爱蜜臀</a>| <a href="http://0359222.com" target="_blank">激情小说亚洲一区</a>| <a href="http://www-36900.com" target="_blank">欧美日韩国产亚洲一区</a>| <a href="http://sese750.com" target="_blank">久久久久久亚洲精品中文字幕</a>| <a href="http://48655aa.com" target="_blank">欧美一区二区三区在线看</a>| <a href="http://59199m.com" target="_blank">国内精品伊人久久久久av影院</a>| <a href="http://www7495.com" target="_blank">99精品热视频</a>| <a href="http://choaoxing.com" target="_blank">亚洲欧美视频在线观看视频</a>| <a href="http://by8556.com" target="_blank">亚洲一区二区精品在线</a>| <a href="http://my777752.com" target="_blank">亚洲欧美日韩精品久久奇米色影视 </a>| <a href="http://3990033.com" target="_blank">亚洲综合日韩</a>| <a href="http://www22336.com" target="_blank">亚洲精品日韩在线观看</a>| <a href="http://beeperagain.com" target="_blank">欧美一区国产一区</a>| <a href="http://8111357.com" target="_blank">亚洲欧美日本精品</a>| <a href="http://583775.com" target="_blank">久久精品国产视频</a>| <a href="http://spvicarb.com" target="_blank">亚洲国产精品一区制服丝袜</a>| <a href="http://489633.com" target="_blank">亚洲第一成人在线</a>| <a href="http://s3yx.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>