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

怎么生成 Native 方式调用的函数的绑定? #1180

Open
DragoonKiller opened this issue Jan 18, 2025 · 0 comments
Open

怎么生成 Native 方式调用的函数的绑定? #1180

DragoonKiller opened this issue Jan 18, 2025 · 0 comments

Comments

@DragoonKiller
Copy link

[LuaCallCSharp]
public class Data
{
      public static int Query(IntPtr L)
      {
          // ...
          return 1;
      }
}

这个会被生成为

System.IntPtr _L = LuaAPI.lua_touserdata(L, 1);
var gen_ret = Data.Query( _L );
LuaAPI.xlua_pushinteger(L, gen_ret);
return 1;
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