Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

isMethodInBlackList IsPointer type Bug #1167

Open
waytoeden opened this issue Sep 27, 2024 · 0 comments
Open

isMethodInBlackList IsPointer type Bug #1167

waytoeden opened this issue Sep 27, 2024 · 0 comments

Comments

@waytoeden
Copy link

waytoeden commented Sep 27, 2024

xLua/Assets/XLua/Src /CodeEmit.cs

static bool isMethodInBlackList(MethodBase mb)
        {
            if (mb.GetParameters().Any(pInfo => pInfo.ParameterType.IsPointer)) return true;
            if (mb is MethodInfo && (mb as MethodInfo).ReturnType.IsPointer) return false;     // ????

            if (mb.IsDefined(typeof(BlackListAttribute), false) || mb.IsDefined(typeof(ObsoleteAttribute), false)) return true;

            return BlackList.Contains(mb);
        }

if (mb is MethodInfo && (mb as MethodInfo).ReturnType.IsPointer) return true;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant