forked from Tencent/xLua
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[unity]il2cpp版本的ObjectPool可以改为在C++实现,fix Tencent/puerts#1960
- Loading branch information
Showing
34 changed files
with
8,760 additions
and
13,009 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 12 additions & 18 deletions
30
com.tencent.xlua/Editor/Resources/xlua/templates/preloadinfo.tpl.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,24 @@ | ||
require('tte') | ||
|
||
function PreLoadInfoTemplate(normalTypes, evalTypes) | ||
function PreLoadInfoTemplate(normalTypes) | ||
local normal = listToLuaArray(normalTypes) | ||
local arg1 = FOR(normal, function(item) | ||
local t = CS.XLua.TypeExtensions.GetLuaFriendlyName(item, nil, false) | ||
if t == '' then | ||
return t | ||
end | ||
return string.format('\n t = %s', t) | ||
end) | ||
local eval = listToLuaArray(evalTypes) | ||
local arg2 = FOR(eval, function(item) | ||
local t = CS.XLua.TypeExtensions.GetLuaFriendlyName(item, nil, false) | ||
if t == '' then | ||
return t | ||
end | ||
return string.format('\n t = %s', t) | ||
return string.format('\nt = %s', t) | ||
end) | ||
--local eval = listToLuaArray(evalTypes) | ||
--local arg2 = FOR(eval, function(item) | ||
-- local t = CS.XLua.TypeExtensions.GetLuaFriendlyName(item, nil, false) | ||
-- if t == '' then | ||
-- return t | ||
-- end | ||
-- return string.format('\n t = %s', t) | ||
--end) | ||
return string.format([[ | ||
function TypePreLoad1() | ||
local t | ||
%s | ||
end | ||
function TypePreLoad2() | ||
local t | ||
local t | ||
%s | ||
end | ||
]], arg1, arg2) | ||
]], arg1) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.