Merge branch 'master' into size_t_lua
Conflicts: lib/tolua++/src/bin/basic_lua.h
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user