lua繫結C++物件系列一——基礎知識
阿新 • • 發佈:2018-12-15
table: 0x1d5a930 //l_registry[2]的地址
select function: 0x425589
require function: 0x1d5cb60
rawget function: 0x424cd3
rawlen function: 0x424c62
dofile function: 0x425453
table(table: 0x1d5cf30)
maxn function: 0x42f46a
move function: 0x42f75d
sort function: 0x43027c
insert function: 0x42f536
unpack function: 0x42fbec
concat function: 0x42fa06
pack function: 0x42fb4a
remove function: 0x42f657
hello nihao
assert function: 0x4254f2
os(table: 0x1d5cea0)
rename function: 0x42a518
time function: 0x42ac8c
remove function: 0x42a4ca
tmpname function: 0x42a588
clock function: 0x42a660
exit function: 0x42aef3
getenv function: 0x42a61d
setlocale function: 0x42ae77
date function: 0x42aa3c
execute function: 0x42a45e
difftime function: 0x42ae09
pcall function: 0x4256bc
getmetatable function: 0x424aed
loadfile function: 0x42515e
rawequal function: 0x424c07
print_tree function: 0x1d61390 //print_tree是自己定義的全域性函式
_VERSION Lua 5.3
rawset function: 0x424d2f
setmetatable function: 0x424b4f
tonumber function: 0x4248da
tostring function: 0x4257f8
module function: 0x1d5caf0
bit32(table: 0x1d60740)
bxor function: 0x4259f0
arshift function: 0x425bbb
bnot function: 0x425a59
rshift function: 0x425b6a
extract function: 0x425e2d
band function: 0x425915
rrotate function: 0x425d34
bor function: 0x425987
lshift function: 0x425b1c
lrotate function: 0x425d03
btest function: 0x42594b
replace function: 0x425eb4
pairs function: 0x425022
print_tree_i function: 0x1d5de50
print_metatable function: 0x1d60ff0
debug(table: 0x1d5aab0)
getlocal function: 0x426c2d
getinfo function: 0x426893
gethook function: 0x427564
traceback function: 0x4277f5
getmetatable function: 0x4265ca
debug function: 0x4276b0
sethook function: 0x42736d
setlocal function: 0x426dd9
setmetatable function: 0x42660f
setupvalue function: 0x426ffb
setuservalue function: 0x4266c7
getupvalue function: 0x426fdc
getuservalue function: 0x42667f
upvaluejoin function: 0x4270f2
getregistry function: 0x4265a6
upvalueid function: 0x4270a0
io(table: 0x1d5d230)
flush function: 0x429055
write function: 0x428e5b
input function: 0x428043
output function: 0x428067
stderr file (0x7fedf80321c0)
popen function: 0x427e22
close function: 0x427b64
stdin file (0x7fedf8032640)
lines function: 0x428155
stdout file (0x7fedf8032400)
read function: 0x428afe
type function: 0x427993
tmpfile function: 0x427ed1
open function: 0x427d0f
math(table: 0x1d5c050)
atan2 function: 0x42952f
floor function: 0x429695
asin function: 0x42947d
random function: 0x429dfd
randomseed function: 0x429f79
acos function: 0x4294d6
ult function: 0x429a54
deg function: 0x429c63
fmod function: 0x4297a7
max function: 0x429d6c
log function: 0x429ab0
maxinteger 9223372036854775807
min function: 0x429cdb
atan function: 0x42952f
tointeger function: 0x4295c3
exp function: 0x429c0a
sin function: 0x429372
pi 3.1415926535898
huge inf
mininteger -9223372036854775808
ceil function: 0x42971e
cosh function: 0x42a02f
modf function: 0x4298e8
frexp function: 0x42a1c6
sqrt function: 0x4299fb
cos function: 0x4293cb
ldexp function: 0x42a23b
abs function: 0x4292e0
log10 function: 0x42a2b5
tan function: 0x429424
tanh function: 0x42a0e1
sinh function: 0x42a088
pow function: 0x42a13a
type function: 0x429fae
rad function: 0x429c9f
string(table: 0x1d5bd90)
lower function: 0x42b1fb
match function: 0x42cbfa
len function: 0x42afe8
pack function: 0x42e634
rep function: 0x42b363
upper function: 0x42b2af
packsize function: 0x42ec59
char function: 0x42b670
unpack function: 0x42ee87
gsub function: 0x42d173
byte function: 0x42b520
format function: 0x42db29
reverse function: 0x42b153
gmatch function: 0x42ccf4
sub function: 0x42b064
find function: 0x42cbdb
dump function: 0x42b77a
collectgarbage function: 0x424d9c
utf8(table: 0x1d5fed0)
codepoint function: 0x43066d
codes function: 0x430c2f
char function: 0x43088d
offset function: 0x430934
charpattern [-[*
len function: 0x430500
unpack function: 0x42fbec
print function: 0x424628
next function: 0x424fc0
coroutine(table: 0x1d5cbd0)
wrap function: 0x426326
resume function: 0x426170
status function: 0x42638d
create function: 0x4262c4
yield function: 0x42635b
isyieldable function: 0x426495
running function: 0x4264c4
ipairs function: 0x4250aa
_G table: 0x1d5a930+ //l_registry[2][“_G”]指向地址就是l_registry[2]
error function: 0x424a5a
loadstring function: 0x4252fa
xpcall function: 0x42574c
load function: 0x4252fa
type function: 0x424e8b