1
0

Merge branch 'master' into size_t_lua

Conflicts:
	lib/tolua++/src/bin/basic_lua.h
This commit is contained in:
Tycho
2014-03-22 07:48:16 -07:00
75 changed files with 5425 additions and 4262 deletions

View File

@@ -67,6 +67,8 @@ _global_enums = {}
-- List of auto renaming
_renaming = {}
_enums = {}
function appendrenaming (s)
local b,e,old,new = strfind(s,"%s*(.-)%s*@%s*(.-)%s*$")
if not b then
@@ -146,6 +148,11 @@ function typevar(type)
end
end
-- is enum
function isenumtype (type)
return _enums[type]
end
-- check if basic type
function isbasic (type)
local t = gsub(type,'const ','')
@@ -383,6 +390,7 @@ end
_push_functions = {}
_is_functions = {}
_enums = {}
_to_functions = {}
_base_push_functions = {}
@@ -411,5 +419,8 @@ function get_to_function(t)
end
function get_is_function(t)
if _enums[t] then
return "tolua_is" .. t
end
return _is_functions[t] or search_base(t, _base_is_functions) or "tolua_isusertype"
end