mirror of
https://github.com/luau-lang/luau.git
synced 2025-05-04 10:33:46 +01:00
Line breaks
This commit is contained in:
parent
25384218ca
commit
f43ff52af2
1 changed files with 4 additions and 2 deletions
|
@ -1355,9 +1355,11 @@ TEST_CASE("UserdataApi")
|
|||
auto dtor = [](lua_State* l, void* data) {
|
||||
dtorhits += *(int*)data;
|
||||
};
|
||||
bool dtorIsNull = lua_getuserdatadtor(L, 42) == nullptr; CHECK(dtorIsNull);
|
||||
bool dtorIsNull = lua_getuserdatadtor(L, 42) == nullptr;
|
||||
CHECK(dtorIsNull);
|
||||
lua_setuserdatadtor(L, 42, dtor);
|
||||
bool dtorIsSet = lua_getuserdatadtor(L, 42) == dtor; CHECK(dtorIsSet);
|
||||
bool dtorIsSet = lua_getuserdatadtor(L, 42) == dtor;
|
||||
CHECK(dtorIsSet);
|
||||
|
||||
// light user data
|
||||
int lud;
|
||||
|
|
Loading…
Add table
Reference in a new issue