Clean up test cases
This commit is contained in:
parent
33c59614fc
commit
18608816db
2 changed files with 4 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
%}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue