dwww Home | Show directory contents | Find package

%module lua_lightuserdata

%native(get_lightuserdata) int get_lightuserdata(lua_State* L);
%{
static int foo;
int get_lightuserdata(lua_State* L)
{
  lua_pushlightuserdata(L, &foo);
  return 1;
}
%}

%inline %{
bool check_lighuserdata(const void* d) {
  return d == &foo;
}
%}

Generated by dwww version 1.15 on Tue Jul 2 00:25:56 CEST 2024.