| 751 | } |
| 752 | |
| 753 | LUA_API void xlua_push_csharp_function(lua_State* L, lua_CFunction fn, int n) |
| 754 | { |
| 755 | lua_pushcfunction(L, fn); |
| 756 | if (n > 0) { |
| 757 | lua_insert(L, -1 - n); |
| 758 | } |
| 759 | lua_pushboolean(L, 0); |
| 760 | if (n > 0) { |
| 761 | lua_insert(L, -1 - n); |
| 762 | } |
| 763 | lua_pushcclosure(L, csharp_function_wrap, 2 + (n > 0 ? n : 0)); |
| 764 | } |
| 765 | |
| 766 | typedef int (*lua_CSWrapperCaller) (lua_State *L, int wrapperid, int top); |
| 767 |
no test coverage detected