BuildInInit.cs 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. namespace XLua.LuaDLL
  2. {
  3. using System.Runtime.InteropServices;
  4. public partial class Lua
  5. {
  6. [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)]
  7. public static extern int luaopen_rapidjson(System.IntPtr L);
  8. [MonoPInvokeCallback(typeof(LuaDLL.lua_CSFunction))]
  9. public static int LoadRapidJson(System.IntPtr L)
  10. {
  11. return luaopen_rapidjson(L);
  12. }
  13. [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)]
  14. public static extern int luaopen_lpeg(System.IntPtr L);
  15. [MonoPInvokeCallback(typeof(LuaDLL.lua_CSFunction))]
  16. public static int LoadLpeg(System.IntPtr L)
  17. {
  18. return luaopen_lpeg(L);
  19. }
  20. [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)]
  21. public static extern int luaopen_pb(System.IntPtr L);
  22. [MonoPInvokeCallback(typeof(LuaDLL.lua_CSFunction))]
  23. public static int LoadLuaProfobuf(System.IntPtr L)
  24. {
  25. return luaopen_pb(L);
  26. }
  27. [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)]
  28. public static extern int luaopen_ffi(System.IntPtr L);
  29. [MonoPInvokeCallback(typeof(LuaDLL.lua_CSFunction))]
  30. public static int LoadFFI(System.IntPtr L)
  31. {
  32. return luaopen_ffi(L);
  33. }
  34. }
  35. }