rewrite makefile, and remove luacode cache.

This commit is contained in:
Cloud Wu
2014-03-26 15:13:30 +08:00
parent 103602259a
commit 58aa7556a5
107 changed files with 20585 additions and 1070 deletions

17
3rd/lua-int64/test.lua Normal file
View File

@@ -0,0 +1,17 @@
lib = require "int64"
local int64 = lib.new
print(lib.tostring(int64 "\1\2\3\4\5\6\7\8"))
a = 1 + int64(1)
b = int64 "\16" + int64("9",10)
print(lib.tostring(a,10), lib.tostring(b,2))
print("+", a+b)
print("-", lib.tostring(a-b,10))
print("*", a*b)
print("/", a/b)
print("%", a%b)
print("^", a^b)
print("==", a == b)
print(">", a > b)
print("#", #a)