Clean up test cases

This commit is contained in:
Ryan Nevell 2020-02-17 09:09:58 -08:00
commit 18608816db
2 changed files with 4 additions and 3 deletions

View file

@ -2,15 +2,16 @@
%native(get_lightuserdata) int get_lightuserdata(lua_State* L);
%{
static int foo;
int get_lightuserdata(lua_State* L)
{
lua_pushlightuserdata(L, reinterpret_cast<void*>(0x123456));
lua_pushlightuserdata(L, &foo);
return 1;
}
%}
%inline %{
bool check_lighuserdata(const void* d) {
return reinterpret_cast<void*>(0x123456) == d;
return d == &foo;
}
%}